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)
288 lua_setfield(L, -2, #name); 288 lua_setfield(L, -2, #name);
289 289
290#define ELUA_LCF_C(name) \ 290#define ELUA_LCF_C(name) \
291 lua_pushinteger(L, (int)lc->name); \ 291 lua_pushinteger(L, (lc->name == CHAR_MAX) ? -1 : (int)lc->name); \
292 lua_setfield(L, -2, #name); 292 lua_setfield(L, -2, #name);
293 293
294 ELUA_LCF_S(decimal_point); 294 ELUA_LCF_S(decimal_point);