summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-08-25 17:30:21 -0400
committerOri Bernstein <ori@eigenstate.org>2016-08-25 17:30:21 -0400
commit4aafe28c24ab5d1439631278a122251c6afc77d4 (patch)
treed20e517aaaaa8e08f66848786882e26b1fc69a2f /6
parent094e3fb0ee4dd4b8aaaca40da90bf770ae42674f (diff)
downloadmc-4aafe28c24ab5d1439631278a122251c6afc77d4.tar.gz
Use an unsigned long long for ~0
Diffstat (limited to '6')
-rw-r--r--6/genp9.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/6/genp9.c b/6/genp9.c
index efe96e0..b1edb80 100644
--- a/6/genp9.c
+++ b/6/genp9.c
@@ -296,7 +296,7 @@ static size_t encodemin(FILE *fd, uvlong val, size_t off, char *lbl)
n = 0;
shift = 8 - i;
- b = ~0 << (shift + 1);
+ b = ~0ull << (shift + 1);
b |= val & ((1 << (8 - shift)) - 1);
fprintf(fd, "\tDATA %s+%zd(SB)/1,$%u\n", lbl, off, b);
val >>= shift;