Browse Source

Fix broken assert

Triggered when DUK_USE_PREFER_SIZE is not defined.
pull/389/head
Sami Vaarala 9 years ago
parent
commit
c43fc1464f
  1. 2
      src/duk_bi_global.c

2
src/duk_bi_global.c

@ -781,7 +781,7 @@ DUK_INTERNAL duk_ret_t duk_bi_global_object_print_helper(duk_context *ctx) {
p += sz_str;
*p++ = (duk_uint8_t) (i == nargs - 1 ? DUK_ASC_LF : DUK_ASC_SPACE);
}
DUK_ASSERT((const duk_uint8_t *) p == buf + sz_total);
DUK_ASSERT((const duk_uint8_t *) p == buf + sz_buf);
#endif /* DUK_USE_PREFER_SIZE */
} else {
buf = (const duk_uint8_t *) &nl;

Loading…
Cancel
Save