1
0
Fork 0
mirror of https://github.com/notwa/lips synced 2024-05-03 10:03:23 -07:00

pass numbers to writer instead of hex strings

This commit is contained in:
Connor Olding 2016-04-10 08:56:00 -07:00
parent 5c91e09151
commit 3290735c8f
2 changed files with 2 additions and 3 deletions

View File

@ -233,8 +233,7 @@ end
function Dumper:write(t)
for _, b in ipairs(t) do
local s = ('%02X'):format(b)
self.writer(self.pos, s)
self.writer(self.pos, b)
self.pos = self.pos + 1
end
end

View File

@ -18,7 +18,7 @@ function lips.word_writer()
local max = -1
return function(pos, b)
if pos then
buff[pos] = b
buff[pos] = ("%02X"):format(b)
if pos > max then
max = pos
end