1
0
Fork 0
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:
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