From: Daniel Kolesa Date: Thu, 30 Apr 2015 12:35:11 +0000 (+0100) Subject: elua lib: use -1 for default values in localeconv X-Git-Tag: v1.15.0-alpha1~752^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc295ae9a539f2b0e98786d6a6ddb8176dcbd49;p=platform%2Fupstream%2Fefl.git elua lib: use -1 for default values in localeconv --- 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);