Skip to content

Commit 5ed70b8

Browse files
authored
Apply suggestions from code review
Signed-off-by: Athan <[email protected]>
1 parent 60bb822 commit 5ed70b8

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/math/base/assert/is-even/src

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/math/base/assert/is-even/src/addon.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "stdlib/napi/create_int32.h"
2323
#include "stdlib/napi/export.h"
2424
#include <node_api.h>
25+
#include <stdint.h>
2526

2627
/**
2728
* Receives JavaScript callback invocation data.
@@ -33,7 +34,7 @@
3334
static napi_value addon( napi_env env, napi_callback_info info ) {
3435
STDLIB_NAPI_ARGV( env, info, argv, argc, 1 );
3536
STDLIB_NAPI_ARGV_DOUBLE( env, x, argv, 0 );
36-
STDLIB_NAPI_CREATE_INT32( env, stdlib_base_is_even( x ), out );
37+
STDLIB_NAPI_CREATE_INT32( env, (int32_t)stdlib_base_is_even( x ), out );
3738
return out;
3839
}
3940

0 commit comments

Comments
 (0)