From 604905dc5e105d3a08f2eef51cd30761b7941242 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 8 Nov 2010 11:06:46 +0000 Subject: Fixed binary display of 64-bit values in num.c --- num.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'num.c') 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) { -- cgit v1.2.3