Skip to content

Commit 20e4c52

Browse files
author
Mike Pall
committed
DynASM/PPC: Fix shadowed variable.
Cleanup only, bug cannot trigger. Thanks to Domingo Alvarez Duarte.
1 parent 380e440 commit 20e4c52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dynasm/dasm_ppc.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,9 +1056,9 @@ map_op[".template__"] = function(params, template, nparams)
10561056
elseif p == "M" then
10571057
op = op + parse_shiftmask(params[n], false); n = n + 1
10581058
elseif p == "J" or p == "K" then
1059-
local mode, n, s = parse_label(params[n], false)
1060-
if p == "K" then n = n + 2048 end
1061-
waction("REL_"..mode, n, s, 1)
1059+
local mode, m, s = parse_label(params[n], false)
1060+
if p == "K" then m = m + 2048 end
1061+
waction("REL_"..mode, m, s, 1)
10621062
n = n + 1
10631063
elseif p == "0" then
10641064
if band(shr(op, rs), 31) == 0 then werror("cannot use r0") end

0 commit comments

Comments
 (0)