Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/lua-winreg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua_int64.h')
-rw-r--r--src/lua_int64.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/lua_int64.h b/src/lua_int64.h
index 9e954ec..6bed1dd 100644
--- a/src/lua_int64.h
+++ b/src/lua_int64.h
@@ -15,8 +15,14 @@ INT64 lua_checkINT64(lua_State *L, int i);
int atoUINT64(const char* s, UINT64 * pv);
int atoINT64(const char* s, INT64 *pv);
+#ifdef __GNUC__
+ #define CONST_9007199254740992 0x20000000000000LL
+#else
+ #define CONST_9007199254740992 9007199254740992
+#endif
+
#define lua_pushUINT64(L,n) \
- if(n > 9007199254740992){ \
+ if( n > CONST_9007199254740992 ){ \
char buf[24]; \
lua_pushstring(L, _ui64toa(n, buf, 10)); \
}else{ \