Browse Source

Type fix for magic value cast

v1.0-maintenance
Sami Vaarala 10 years ago
parent
commit
7e83068577
  1. 2
      src/duk_api_call.c

2
src/duk_api_call.c

@ -477,5 +477,5 @@ void duk_set_magic(duk_context *ctx, duk_idx_t index, duk_int_t magic) {
nf = duk_require_hnativefunction(ctx, index);
DUK_ASSERT(nf != NULL);
nf->magic = (duk_uint16_t) magic;
nf->magic = (duk_int16_t) magic;
}

Loading…
Cancel
Save