diff options
author | Valentino Geron <valentino@redislabs.com> | 2022-07-17 18:28:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 18:28:38 +0300 |
commit | 82b82035553cdbaf81983f91e0402edc8de764ab (patch) | |
tree | d7afa9094632cd9b29672c5bc8fbc0fd69dd49af /src/script_lua.c | |
parent | 587fc9ce763c2eac90167f0b7daf295056b944a6 (diff) | |
download | redis-82b82035553cdbaf81983f91e0402edc8de764ab.tar.gz |
remove boolean usage and use 0/1 instead (#10997)
If we do not use jemalloc (mostly with valgrind) and use an old compiler that does not support C11
we will get compilation error
Co-authored-by: Valentino Geron <valentino@redis.com>
Diffstat (limited to 'src/script_lua.c')
-rw-r--r-- | src/script_lua.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script_lua.c b/src/script_lua.c index 4ca8eb7b6..22eb58102 100644 --- a/src/script_lua.c +++ b/src/script_lua.c @@ -334,7 +334,7 @@ static void redisProtocolToLuaType_Error(void *ctx, const char *str, size_t len, /* push a field indicate to ignore updating the stats on this error * because it was already updated when executing the command. */ lua_pushstring(lua,"ignore_error_stats_update"); - lua_pushboolean(lua, true); + lua_pushboolean(lua, 1); lua_settable(lua,-3); } @@ -891,7 +891,7 @@ static int luaRedisGenericCommand(lua_State *lua, int raise_error) { /* push a field indicate to ignore updating the stats on this error * because it was already updated when executing the command. */ lua_pushstring(lua,"ignore_error_stats_update"); - lua_pushboolean(lua, true); + lua_pushboolean(lua, 1); lua_settable(lua,-3); goto cleanup; } |