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 b5bfe32 commit 4ddc96dCopy full SHA for 4ddc96d
lib/node_modules/@stdlib/number/float32/base/signbit/src/addon.c
@@ -60,9 +60,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
60
}
61
62
float value;
63
- status = napi_get_value_float( env, argv[ 0 ], &value );
+ double temp;
64
+ status = napi_get_value_double( env, argv[ 0 ], &temp );
65
assert( status == napi_ok );
66
67
+ value = (float)temp;
68
+
69
int8_t out = stdlib_base_float32_signbit( value );
70
71
napi_value v;
0 commit comments