mirror of
https://github.com/notwa/mm
synced 2024-11-04 22:39:02 -08:00
warn about printf truncation
This commit is contained in:
parent
c77eea55d1
commit
7b147f9653
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue