summaryrefslogtreecommitdiffstats
path: root/kjs/simple_number.h
diff options
context:
space:
mode:
Diffstat (limited to 'kjs/simple_number.h')
-rw-r--r--kjs/simple_number.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/kjs/simple_number.h b/kjs/simple_number.h
index 1f5830dff..cf5d91ef3 100644
--- a/kjs/simple_number.h
+++ b/kjs/simple_number.h
@@ -33,9 +33,9 @@ namespace KJS {
class SimpleNumber {
public:
- enum { tag = 1, shift = 2, mask = (1 << shift) - 1, sign = 1L << (sizeof(long) * 8 - 1 ), max = (1L << ((sizeof(long) * 8 - 1) - shift)) - 1, min = -max - 1, imax = (1L << ((sizeof(int) * 8 - 1) - shift)) - 1, imin = -imax - 1 };
+ enum { tag = 1, shift = 2, tqmask = (1 << shift) - 1, sign = 1L << (sizeof(long) * 8 - 1 ), max = (1L << ((sizeof(long) * 8 - 1) - shift)) - 1, min = -max - 1, imax = (1L << ((sizeof(int) * 8 - 1) - shift)) - 1, imin = -imax - 1 };
- static inline bool is(const ValueImp *imp) { return ((long)imp & mask) == tag; }
+ static inline bool is(const ValueImp *imp) { return ((long)imp & tqmask) == tag; }
static inline long value(const ValueImp *imp) { return ((long)imp >> shift) | (((long)imp & sign) ? ~max : 0); }
static inline bool fits(int i) { return i <= imax && i >= imin; }