Skip to content

Commit

Permalink
[BUGFIX] fix #238 #227
Browse files Browse the repository at this point in the history
  • Loading branch information
oxUnd committed Oct 27, 2021
1 parent 20aef88 commit cc15a4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Image.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,12 @@ napi_value Image::SetMaxHeight(napi_env env, napi_callback_info info) { // {{{
size_t argc = 1;
napi_value value;
napi_value jsthis;
uint32_t maxHeight;

status = napi_get_cb_info(env, info, &argc, &value, &jsthis, nullptr);
assert(status == napi_ok);

GET_VALUE_WITH_NAPI_FUNC(napi_get_value_uint32, value, &maxHeight);
GET_VALUE_WITH_NAPI_FUNC(napi_get_value_uint32, value, (uint32_t *) &maxHeight);


return value;
} // }}}
Expand Down

0 comments on commit cc15a4b

Please sign in to comment.