diff options
author | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-04-30 13:35:11 +0100 |
---|---|---|
committer | Daniel Kolesa <d.kolesa@osg.samsung.com> | 2015-05-06 15:05:23 +0100 |
commit | 7cc295ae9a539f2b0e98786d6a6ddb8176dcbd49 (patch) | |
tree | 7265ec2881bc3469dd2ca9026974520852a531a4 | |
parent | 490deb93288d8401bff4f442d67f4df6a054f7c9 (diff) | |
download | efl-devs/q66/elua_lib_overhaul.tar.gz |
elua lib: use -1 for default values in localeconvdevs/q66/elua_lib_overhaul
-rw-r--r-- | src/lib/elua/elua.c | 2 |
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); |