We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 421c614 commit 9a76609Copy full SHA for 9a76609
lib/node_modules/@stdlib/napi/argv-int32/src/addon.c
@@ -45,7 +45,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
45
STDLIB_NAPI_ARGV( env, info, argv, argc, 1 )
46
STDLIB_NAPI_ARGV_INT32( env, value, argv, 0 )
47
int32_t out = identity( value );
48
- if ( out != out ) {
+ if ( out < -128 ) {
49
napi_status status = napi_throw_error( env, NULL, "unexpected error" );
50
assert( status == napi_ok );
51
return NULL;
0 commit comments