ref: ba6d0a1df98a5b2b1dc4ccc5ff1aad2d7359d9ea
parent: 3ddd3c850f387a05175b5fe06469b94b5fa2a1ac
author: Ori Bernstein <[email protected]>
date: Sun Dec 21 16:33:13 EST 2014
Plan9 doesn't have the PRIx32 variables. Plus, they're ugly.
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -294,10 +294,10 @@
case Lflt:
if (tybase(v->lit.type)->type == Tyflt32) {
u.fv = v->lit.fltval;
- fprintf(fd, "\t.long 0x%" PRIx32 "\n", u.lv);
+ fprintf(fd, "\t.long 0x%llx\n", (vlong)u.lv);
} else if (tybase(v->lit.type)->type == Tyflt64) {
u.dv = v->lit.fltval;
- fprintf(fd, "\t.quad 0x%" PRIx64 "\n", u.qv);
+ fprintf(fd, "\t.quad 0x%llx\n", (vlong)u.qv);
}
break;
case Lstr: