summary refs log tree commit diff
path: root/lisc/lisc.h
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-25 12:14:50 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-25 12:14:50 -0400
commit08a2ffe8c4711e94ecd7b44952babc28e00a960f (patch)
treec2abc1f35c78b4df1967d62c5a2f1002ca5fab83 /lisc/lisc.h
parent4dccbf22f3be3b206f8d8e6690adbdd2c1a6550c (diff)
downloadroux-08a2ffe8c4711e94ecd7b44952babc28e00a960f.tar.gz
change controversial (at best) typedef
Diffstat (limited to 'lisc/lisc.h')
-rw-r--r--lisc/lisc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/lisc.h b/lisc/lisc.h
index fbd2310..c577dea 100644
--- a/lisc/lisc.h
+++ b/lisc/lisc.h
@@ -5,7 +5,7 @@
 #include <string.h>
 
 typedef unsigned int uint;
-typedef unsigned long long ulong;
+typedef unsigned long ulong;
 
 typedef struct Bits Bits;
 typedef struct Ref Ref;
@@ -66,7 +66,7 @@ struct Bits {
 	ulong t[BITS];
 };
 
-#define BIT(n)     (1ull << (n))
+#define BIT(n)     (1ul << (n))
 #define BGET(b, n) (1&((b).t[n/NBit]>>(n%NBit)))
 #define BSET(b, n) ((b).t[n/NBit] |= BIT(n%NBit))
 #define BCLR(b, n) ((b).t[n/NBit] &= ~BIT(n%NBit))