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