summaryrefslogtreecommitdiff
path: root/num.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2010-11-08 11:06:46 +0000
committerIan C <ianc@noddybox.co.uk>2010-11-08 11:06:46 +0000
commit604905dc5e105d3a08f2eef51cd30761b7941242 (patch)
tree9d3c4148b04abdefdb5d8809e2126d1debce9d79 /num.c
parent7633ca67346c09dbd7b6670d55d8516cbae4e476 (diff)
Fixed binary display of 64-bit values in num.c
Diffstat (limited to 'num.c')
-rw-r--r--num.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/num.c b/num.c
index d826f8d..3140619 100644
--- a/num.c
+++ b/num.c
@@ -11,11 +11,11 @@ static char *binary(unsigned long long i, int w)
unsigned long long b;
int c;
- b = 1<<(w-1);
+ b = 1ull<<(w-1);
p = buff;
- for(c = w; c--; b = b>>1)
+ for(c = w; c--; b = b>>1ull)
{
if (((c+1)%4) == 0 && !first)
{