Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[nci] Fix definition of ffi_type_parrot_numval when NUMVAL_SIZE=16 an…

…d add some native pbc
  • Loading branch information...
commit 3e77d4004c6658b33aa271fe2fe2e474d2769622 1 parent 0e75eb6
@leto leto authored
View
1  MANIFEST
@@ -1754,6 +1754,7 @@ t/native_pbc/string_1.pbc [test]
t/native_pbc/string_2.pbc [test]
t/native_pbc/string_3.pbc [test]
t/native_pbc/string_4.pbc [test]
+t/native_pbc/string_5.pbc [test]
t/native_pbc/string_6.pbc [test]
t/native_pbc/string_7.pbc [test]
t/native_pbc/testdata/README []doc
View
8 src/nci/libffi.c
@@ -37,7 +37,13 @@ This file implements a native call frame (thunk) factory using libffi.
#elif(NUMVAL_SIZE == 12)
# define ffi_type_parrot_numval ffi_type_longdouble
#elif(NUMVAL_SIZE == 16)
-# define ffi_type_parrot_numval ffi_type_longdouble
+# if PARROT_HAS_LONGLONG
+# if (LONGLONG_SIZE == 8)
+# define ffi_type_parrot_numval ffi_type_sint64
+# else
+# error "unhandled long long size"
+# endif
+# endif
#else
# error "unhandled NUMVAL_SIZE value"
#endif
View
BIN  t/native_pbc/number_5.pbc
Binary file not shown
View
BIN  t/native_pbc/string_5.pbc
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.