From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kjs/simple_number.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kjs/simple_number.h') diff --git a/kjs/simple_number.h b/kjs/simple_number.h index cf5d91ef3..1f5830dff 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, 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 }; + 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 }; - static inline bool is(const ValueImp *imp) { return ((long)imp & tqmask) == tag; } + static inline bool is(const ValueImp *imp) { return ((long)imp & mask) == 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; } -- cgit v1.2.1