summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-27 14:52:15 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-27 14:52:15 -0700
commitd17587d89ed49739392eb6d768d583c7f5955d2c (patch)
treedbb3900d88961d3535436b25091e7ad6cf9c3e0a
parent46f0325e0e0d5e49b6bcf926e45449f3397eaa47 (diff)
downloadmc-d17587d89ed49739392eb6d768d583c7f5955d2c.tar.gz
C99 intxx types are nuts wrt printf. Cast to sanity.
-rw-r--r--6/genp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/genp9.c b/6/genp9.c
index 13d3cd9..720cbae 100644
--- a/6/genp9.c
+++ b/6/genp9.c
@@ -349,7 +349,7 @@ static size_t writeblob(FILE *fd, Blob *b, size_t off, char *lbl)
n += 4;
break;
case Bti64:
- fprintf(fd, "DATA %s+%zd(SB)/8,$%lld\n", lbl, off+n, b->ival);
+ fprintf(fd, "DATA %s+%zd(SB)/8,$%lld\n", lbl, off+n, (vlong)b->ival);
n += 8;
break;
case Btimin: