Skip to content

Commit 6b8b487

Browse files
author
HD Moore
committed
Handle the raw byte case as well
1 parent 7d2d641 commit 6b8b487

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/pattern_offset.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727

2828
if (value.length >= 8 and value.hex > 0)
2929
value = value.hex
30+
elsif (value.length == 4)
31+
value = value.unpack("V").first
3032
else
3133
value = value.to_i(16)
3234
end

0 commit comments

Comments
 (0)