]> Repositorios git - scryer-prolog.git/commitdiff
use C-string literal
authorThierry M. <[email protected]>
Wed, 4 Mar 2026 14:01:23 +0000 (15:01 +0100)
committerGitHub <[email protected]>
Wed, 4 Mar 2026 14:01:23 +0000 (15:01 +0100)
Co-authored-by: Bennet Bleßmann <[email protected]>
tests/scryer/ffi.rs

index bbc24c5015e2b1082d66daf17cf180ccab6b8d10..f91be5e23eba88a62711b7ad4ad6ae40b36ecd66 100644 (file)
@@ -311,7 +311,7 @@ fn ffi_utf8_panic() {
         r##"
                 #[unsafe(no_mangle)]
                 extern "C" fn ffi_invalid_utf8_cstr() -> *const core::ffi::c_char {
-                    b"Invalid\xFFUTF8\x00".as_ptr() as *const _
+                    c"Invalid\xFFUTF8".as_ptr()
                 }
             "##,
     );