We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9d5bae commit 3491f73Copy full SHA for 3491f73
1 file changed
src/ffi/types.cc
@@ -246,9 +246,11 @@ v8::Maybe<ffi_type*> ToFFIType(Environment* env, std::string_view type_str) {
246
return Just(&ffi_type_sint64);
247
} else if (type_str == "u64" || type_str == "uint64") {
248
return Just(&ffi_type_uint64);
249
- } else if (type_str == "f32" || type_str == "float") {
+ } else if (type_str == "f32" || type_str == "float" ||
250
+ type_str == "float32") {
251
return Just(&ffi_type_float);
- } else if (type_str == "f64" || type_str == "double") {
252
+ } else if (type_str == "f64" || type_str == "double" ||
253
+ type_str == "float64") {
254
return Just(&ffi_type_double);
255
} else if (type_str == "buffer" || type_str == "arraybuffer" ||
256
type_str == "string" || type_str == "str" ||
0 commit comments