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:
authorOliver Schneider <oliver@assarbad.net>2018-04-05 22:49:21 +0300
committerOliver Schneider <oliver@assarbad.net>2018-04-05 22:49:21 +0300
commiteb333d5be1246bb53eed824d40943b9880ba0403 (patch)
tree78e70b70b37bf12f7101d5b5b69fb66d61fd5c48 /src/lua_int64.h
parent0f1d18507a86992d69f932cfc846a31c5735c1a7 (diff)
Patches I applied for WinDirStatwds-patches
Diffstat (limited to 'src/lua_int64.h')
-rw-r--r--src/lua_int64.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lua_int64.h b/src/lua_int64.h
index 61ab589..d1801cb 100644
--- a/src/lua_int64.h
+++ b/src/lua_int64.h
@@ -24,7 +24,11 @@ int atoINT64(const char* s, INT64 *pv);
#define lua_pushUINT64(L,n) \
if( n > CONST_9007199254740992 ){ \
char buf[24]; \
- lua_pushstring(L, _ui64toa(n, buf, 10)); \
+ if(_ui64toa_s(n, buf, _countof(buf), 10)){ \
+ lua_pushnil(L);return; \
+ }else{ \
+ lua_pushstring(L, buf); \
+ } \
}else{ \
lua_pushnumber(L, (lua_Number)(__int64)n); \
}