We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
load()
1 parent a3da8f7 commit e7f97f4Copy full SHA for e7f97f4
src/jsvar.c
@@ -323,7 +323,8 @@ static JsVarRef jsvInitJsVars(JsVarRef start, unsigned int count) {
323
324
void jsvInit(unsigned int size) {
325
#ifdef RESIZABLE_JSVARS
326
- assert(size==0);
+ // ignore size here - we're always going to start off at our smallest size
327
+ NOT_USED(size);
328
jsVarsSize = JSVAR_BLOCK_SIZE;
329
jsVarBlocks = malloc(sizeof(JsVar*)); // just 1
330
#if defined(ESPR_JIT) && defined(LINUX)
@@ -343,7 +344,7 @@ void jsvInit(unsigned int size) {
343
344
if(!jsVars) jsVars = (JsVar *)malloc(sizeof(JsVar) * jsVarsSize);
345
#endif
346
#else
347
+ assert(size==JSVAR_CACHE_SIZE);
348
349
350
jsVarFirstEmpty = jsvInitJsVars(1/*first*/, jsVarsSize);
0 commit comments