ref: 3e55de64ebd376a181a315f67427893c8a137bec
parent: 54110775fb881f4690940b07d57b8555bb325f75
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Nov 30 07:49:55 EST 2020
fix uint64 printint
--- a/print.c
+++ b/print.c
@@ -706,9 +706,9 @@
) {
uint64_t ui64 = *(uint64_t*)data;
if (weak || print_princ)
- HPOS += ios_printf(f, "%llu", ui64);
+ HPOS += ios_printf(f, "%llud", ui64);
else
- HPOS += ios_printf(f, "#%s(%llu)", symbol_name(type), ui64);
+ HPOS += ios_printf(f, "#%s(%llud)", symbol_name(type), ui64);
}
else if (issymbol(type)) {
// handle other integer prims. we know it's smaller than uint64