summaryrefslogtreecommitdiff
path: root/num.c
diff options
context:
space:
mode:
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)
{