metasm/decompile.rb in metasm-1.0.2 vs metasm/decompile.rb in metasm-1.0.3
- old
+ new
@@ -179,10 +179,10 @@
def new_global_var(addr, type, scope=nil)
addr = @dasm.normalize(addr)
# (almost) NULL ptr
- return if addr.kind_of? Fixnum and addr >= 0 and addr < 32
+ return if addr.kind_of? Integer and addr >= 0 and addr < 32
# check preceding structure we're hitting
# TODO check what we step over when defining a new static struct
0x100.times { |i_|
next if not n = @dasm.get_label_at(addr-i_)