From 560378aaca1784ba19806a0414a32b20c744de39 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 3 Jan 2011 04:12:51 +0000 Subject: Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1 NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 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 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; } -- cgit v1.2.3