summaryrefslogtreecommitdiff
path: root/src/lib/elua/elua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elua/elua.c')
-rw-r--r--src/lib/elua/elua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elua/elua.c b/src/lib/elua/elua.c
index ed5a4e3786..3d34b1f9b1 100644
--- a/src/lib/elua/elua.c
+++ b/src/lib/elua/elua.c
@@ -288,7 +288,7 @@ _elua_get_localeconv(lua_State *L)
lua_setfield(L, -2, #name);
#define ELUA_LCF_C(name) \
- lua_pushinteger(L, (int)lc->name); \
+ lua_pushinteger(L, (lc->name == CHAR_MAX) ? -1 : (int)lc->name); \
lua_setfield(L, -2, #name);
ELUA_LCF_S(decimal_point);