Skip to content

Commit

Permalink
s/userd_res/used_res/
Browse files Browse the repository at this point in the history
  • Loading branch information
ydah committed Sep 24, 2024
1 parent ea5306c commit f09087c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/lrama/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ def compute_packed_table
@check = []
# Key is froms_and_tos, value is index position
pushed = {}
userd_res = {}
used_res = {}
lowzero = 0
high = 0

Expand All @@ -430,7 +430,7 @@ def compute_packed_table
end
end

if ok && userd_res[res]
if ok && used_res[res]
ok = false
end

Expand Down Expand Up @@ -458,7 +458,7 @@ def compute_packed_table

@base[state_id] = res
pushed[froms_and_tos] = res
userd_res[res] = true
used_res[res] = true
end

@yylast = high
Expand Down

0 comments on commit f09087c

Please sign in to comment.