]> Repositorios git - scryer-prolog.git/commitdiff
use C-string literal
authorThierry M. <[email protected]>
Wed, 4 Mar 2026 12:33:00 +0000 (13:33 +0100)
committerThierry Marianne <[email protected]>
Wed, 4 Mar 2026 12:59:53 +0000 (13:59 +0100)
Co-authored-by: Bennet Bleßmann <[email protected]>
tests/scryer/issues.rs

index 856da766f53e59b011916112e3b085f0d743a236..6bfd68711d04f541d8e08cbf728b7cecf37da6a1 100644 (file)
@@ -159,7 +159,7 @@ fn ffi_utf8_panic() {
     let src = 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()
         }
     "##;