Unverified Commit 82b82035 authored by Valentino Geron's avatar Valentino Geron Committed by GitHub
Browse files

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: default avatarValentino Geron <valentino@redis.com>
parent 587fc9ce
...@@ -334,7 +334,7 @@ static void redisProtocolToLuaType_Error(void *ctx, const char *str, size_t len, ...@@ -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 /* push a field indicate to ignore updating the stats on this error
* because it was already updated when executing the command. */ * because it was already updated when executing the command. */
lua_pushstring(lua,"ignore_error_stats_update"); lua_pushstring(lua,"ignore_error_stats_update");
lua_pushboolean(lua, true); lua_pushboolean(lua, 1);
lua_settable(lua,-3); lua_settable(lua,-3);
} }
...@@ -891,7 +891,7 @@ static int luaRedisGenericCommand(lua_State *lua, int raise_error) { ...@@ -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 /* push a field indicate to ignore updating the stats on this error
* because it was already updated when executing the command. */ * because it was already updated when executing the command. */
lua_pushstring(lua,"ignore_error_stats_update"); lua_pushstring(lua,"ignore_error_stats_update");
lua_pushboolean(lua, true); lua_pushboolean(lua, 1);
lua_settable(lua,-3); lua_settable(lua,-3);
goto cleanup; goto cleanup;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment