mirror of
https://github.com/notwa/mm
synced 2024-06-30 22:07:11 -07:00
warn about printf truncation
This commit is contained in:
parent
c77eea55d1
commit
7b147f9653
|
@ -108,6 +108,9 @@ end
|
||||||
|
|
||||||
function hex(i)
|
function hex(i)
|
||||||
-- convenience function for use in console
|
-- convenience function for use in console
|
||||||
|
if i > 0xFFFFFFFF then
|
||||||
|
print('warning: truncated')
|
||||||
|
end
|
||||||
printf("%08X", i)
|
printf("%08X", i)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user