GitHub

File tree

  • mrbgems/mruby-compiler/core

Original file line numberDiff line numberDiff line change

@@ -3821,7 +3821,7 @@ codegen_array(codegen_scope *s, node *varnode, int val)

38213821

node *elements = array->elements;

38223822

int regular_elements = 0;

38233823

int first = 1;

3824-

int slimit = GEN_VAL_STACK_MAX;

3824+

int slimit = GEN_LIT_ARY_MAX;

38253825
38263826

if (!val) return;

38273827

@@ -3831,7 +3831,7 @@ codegen_array(codegen_scope *s, node *varnode, int val)

38313831

return;

38323832

}

38333833
3834-

if (cursp() >= GEN_LIT_ARY_MAX) slimit = INT16_MAX;

3834+

if (cursp() >= slimit) slimit = GEN_VAL_STACK_MAX;

38353835
38363836

/* Process each element using cons-list iteration, handling splats */

38373837

node *current = elements;

Read the original on github.com ↗