Skip to content

Commit

Permalink
Set up location correctly for hashed locals
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Apr 5, 2024
1 parent 5f56bf4 commit 0334140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/prism.c
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ pm_locals_write(pm_locals_t *locals, pm_constant_id_t name, const uint8_t *start
if (local->name == PM_CONSTANT_ID_UNSET) {
*local = (pm_local_t) {
.name = name,
.location = { .start = start, .end = end },
.index = locals->size++,
.reads = reads,
.hash = initial_hash
Expand Down

0 comments on commit 0334140

Please sign in to comment.