Skip to content

Commit b426449

Browse files
David MaloneyDavid Maloney
authored andcommitted
fix the fix for 64 bit
JJ's fix is too specific
1 parent 29c2a73 commit b426449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasm/metasm/cpu/x86_64/compile_c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ def c_ifgoto(expr, target)
879879
r = c_cexpr_inner(expr.rexpr)
880880
r = make_volatile(r, expr.type) if r.kind_of? ModRM and l.kind_of? ModRM
881881
r = make_volatile(r, expr.type) if r.kind_of?(ModRM) and r.sz != l.sz
882-
l = make_volatile(l, expr.type) if l.kind_of?(ModRM) and r.kind_of?(Reg) and r.sz != l.sz
882+
l = make_volatile(l, expr.type) if l.kind_of?(ModRM)
883883
if l.kind_of? Expression
884884
o = { :< => :>, :> => :<, :>= => :<=, :<= => :>= }[o] || o
885885
l, r = r, l

0 commit comments

Comments
 (0)