Skip to content

Commit 4ddc96d

Browse files
fix: src errors
1 parent b5bfe32 commit 4ddc96d

File tree

1 file changed

+4
-1
lines changed
  • lib/node_modules/@stdlib/number/float32/base/signbit/src

1 file changed

+4
-1
lines changed

lib/node_modules/@stdlib/number/float32/base/signbit/src/addon.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
6060
}
6161

6262
float value;
63-
status = napi_get_value_float( env, argv[ 0 ], &value );
63+
double temp;
64+
status = napi_get_value_double( env, argv[ 0 ], &temp );
6465
assert( status == napi_ok );
6566

67+
value = (float)temp;
68+
6669
int8_t out = stdlib_base_float32_signbit( value );
6770

6871
napi_value v;

0 commit comments

Comments
 (0)