ext/ffi_c/Function.c in ffi-1.0.12.pre vs ext/ffi_c/Function.c in ffi-1.0.12.rc1
- old
+ new
@@ -59,10 +59,11 @@
#include "Call.h"
#include "ClosurePool.h"
#include "Function.h"
#include "MappedType.h"
#include "Thread.h"
+#include "LongDouble.h"
typedef struct Function_ {
Pointer base;
FunctionType* info;
MethodHandle* methodHandle;
@@ -771,9 +772,12 @@
case NATIVE_FLOAT32:
param = rb_float_new(*(float *) parameters[i]);
break;
case NATIVE_FLOAT64:
param = rb_float_new(*(double *) parameters[i]);
+ break;
+ case NATIVE_LONGDOUBLE:
+ param = rbffi_longdouble_new(*(long double *) parameters[i]);
break;
case NATIVE_STRING:
param = (*(void **) parameters[i] != NULL) ? rb_tainted_str_new2(*(char **) parameters[i]) : Qnil;
break;
case NATIVE_POINTER: