compiler: Changed types of Char to uint32_t and NativeString to unsigned char*
[nit.git] / tests / test_ffi_cpp_duplicated_callback_b.nit
index 01eb25c..e4631dc 100644 (file)
@@ -19,7 +19,7 @@ in "C++ header" `{
 `}
 
 fun print_b(str: String) import String.to_cstring in "C++" `{
-       puts(String_to_cstring(str));
+       puts(reinterpret_cast<char*>(String_to_cstring(str)));
 `}
 
 print_a "Hello from `a`."