Skip to content

Commit 66cb242

Browse files
chore: minor clean up
1 parent c9f9c53 commit 66cb242

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • lib/node_modules/@stdlib/math/base/napi/quaternary/src

lib/node_modules/@stdlib/math/base/napi/quaternary/src/cccc_c.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
6969
napi_valuetype wretype;
7070
status = napi_typeof( env, wre, &wretype );
7171
assert( status == napi_ok );
72-
if ( xretype != napi_number ) {
72+
if ( wretype != napi_number ) {
7373
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have a real component which is a number." );
7474
assert( status == napi_ok );
7575
return NULL;
@@ -90,8 +90,8 @@ napi_value stdlib_math_base_napi_cccc_c( napi_env env, napi_callback_info info,
9090
napi_valuetype wimtype;
9191
status = napi_typeof( env, wim, &wimtype );
9292
assert( status == napi_ok );
93-
if ( ximtype != napi_number ) {
94-
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component which a number." );
93+
if ( wimtype != napi_number ) {
94+
status = napi_throw_type_error( env, NULL, "invalid argument. First argument must have an imaginary component which is a number." );
9595
assert( status == napi_ok );
9696
return NULL;
9797
}

0 commit comments

Comments
 (0)