aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/luaconf.h b/luaconf.h
index a7a16f6a..fe9fcd25 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.182 2013/06/13 19:35:08 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.183 2013/06/20 15:02:49 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -494,14 +494,21 @@
494 494
495#if LUA_SMALL_INT /* { */ 495#if LUA_SMALL_INT /* { */
496 496
497#define LUA_INTEGER long 497#if LUAI_BITSINT >= 32
498
499#define LUA_INTEGER int
500#define LUA_INTEGER_FRMLEN ""
501
502#else
498 503
504#define LUA_INTEGER long
499#define LUA_INTEGER_FRMLEN "l" 505#define LUA_INTEGER_FRMLEN "l"
500 506
501#else /* }{ */ 507#endif
502 508
503#define LUA_INTEGER long long 509#else /* }{ */
504 510
511#define LUA_INTEGER long long
505#define LUA_INTEGER_FRMLEN "ll" 512#define LUA_INTEGER_FRMLEN "ll"
506 513
507#endif /* } */ 514#endif /* } */
@@ -510,7 +517,7 @@
510#define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d" 517#define LUA_INTEGER_FMT "%" LUA_INTEGER_FRMLEN "d"
511#define lua_integer2str(s,n) sprintf((s), LUA_INTEGER_FMT, (n)) 518#define lua_integer2str(s,n) sprintf((s), LUA_INTEGER_FMT, (n))
512 519
513#define LUA_UNSIGNED unsigned LUA_INTEGER 520#define LUA_UNSIGNED unsigned LUA_INTEGER
514 521
515/* }================================================================== */ 522/* }================================================================== */
516 523