| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -246,9 +246,11 @@ v8::Maybe<ffi_type*> ToFFIType(Environment* env, std::string_view type_str) { | |||
| 246 | 246 | return Just(&ffi_type_sint64); | |
| 247 | 247 | } else if (type_str == "u64" || type_str == "uint64") { | |
| 248 | 248 | return Just(&ffi_type_uint64); | |
| 249 | - } else if (type_str == "f32" || type_str == "float") { | ||
| 249 | + } else if (type_str == "f32" || type_str == "float" || | ||
| 250 | + type_str == "float32") { | ||
| 250 | 251 | return Just(&ffi_type_float); | |
| 251 | - } else if (type_str == "f64" || type_str == "double") { | ||
| 252 | + } else if (type_str == "f64" || type_str == "double" || | ||
| 253 | + type_str == "float64") { | ||
| 252 | 254 | return Just(&ffi_type_double); | |
| 253 | 255 | } else if (type_str == "buffer" || type_str == "arraybuffer" || | |
| 254 | 256 | type_str == "string" || type_str == "str" || | |
| Back | FazBrowse Home | New Git URL |
0 commit comments