Skip to content

Commit

Permalink
rechase lexreg each time through the loop
Browse files Browse the repository at this point in the history
let's see if it fixes #931
  • Loading branch information
diakopter committed Aug 6, 2018
1 parent 46edb6f commit aa49992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spesh/frame_walker.c
Expand Up @@ -329,9 +329,9 @@ MVMObject * MVM_spesh_frame_walker_get_lexicals_hash(MVMThreadContext *tc, MVMSp
MVMObject *ctx_hash = MVM_repr_alloc_init(tc, hll->slurpy_hash_type);
find_lex_info(tc, fw, &frame, &sf, &base_index);
MVMROOT3(tc, ctx_hash, frame, sf, {
MVMLexicalRegistry **lexreg = sf->body.lexical_names_list;
MVMuint32 i;
for (i = 0; i < sf->body.num_lexicals; i++) {
MVMLexicalRegistry **lexreg = sf->body.lexical_names_list;
MVMuint32 idx = base_index + lexreg[i]->value;
MVMuint16 type = sf->body.lexical_types[idx];
switch (type) {
Expand Down

0 comments on commit aa49992

Please sign in to comment.