1
0
Fork 0
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:
Connor Olding 2015-07-22 22:51:31 -07:00
parent c77eea55d1
commit 7b147f9653

View file

@ -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