Permalink
Browse files

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

…d add some native pbc
  • Loading branch information...
1 parent 0e75eb6 commit 3e77d4004c6658b33aa271fe2fe2e474d2769622 @leto leto committed Mar 21, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −0 MANIFEST
  2. +7 −1 src/nci/libffi.c
  3. BIN t/native_pbc/number_5.pbc
  4. BIN t/native_pbc/string_5.pbc
View
@@ -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
@@ -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
Binary file not shown.
Binary file not shown.

0 comments on commit 3e77d40

Please sign in to comment.