elua lib: use -1 for default values in localeconv

This commit is contained in:
Daniel Kolesa 2015-04-30 13:35:11 +01:00
parent 490deb9328
commit 7cc295ae9a
1 changed files with 1 additions and 1 deletions

View File

@ -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);