summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-04-30 13:35:11 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-06 15:05:23 +0100
commit7cc295ae9a539f2b0e98786d6a6ddb8176dcbd49 (patch)
tree7265ec2881bc3469dd2ca9026974520852a531a4 /src
parent490deb93288d8401bff4f442d67f4df6a054f7c9 (diff)
elua lib: use -1 for default values in localeconv
Diffstat (limited to 'src')
-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);