Skip to content

Commit

Permalink
Remove unnecessary logic
Browse files Browse the repository at this point in the history
  • Loading branch information
artikell committed Feb 28, 2025
1 parent 87709c2 commit 3fe194c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,7 @@ static int numericParseString(standardConfig *config, sds value, const char **er
if (config->data.numeric.flags & OCTAL_CONFIG) {
char *endptr;
errno = 0;
*res = strtoull(value, &endptr, 8);
*res = strtoll(value, &endptr, 8);
if (errno == 0 && *endptr == '\0') return 1; /* No overflow or invalid characters */
}

Expand Down
1 change: 0 additions & 1 deletion src/redismodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,6 @@
#define RedisModule_EventLoopAddOneShot ValkeyModule_EventLoopAddOneShot
#define RedisModule_RegisterBoolConfig ValkeyModule_RegisterBoolConfig
#define RedisModule_RegisterNumericConfig ValkeyModule_RegisterNumericConfig
#define RedisModule_RegisterUnsignedNumericConfig ValkeyModule_RegisterUnsignedNumericConfig
#define RedisModule_RegisterStringConfig ValkeyModule_RegisterStringConfig
#define RedisModule_RegisterEnumConfig ValkeyModule_RegisterEnumConfig
#define RedisModule_LoadConfigs ValkeyModule_LoadConfigs
Expand Down

0 comments on commit 3fe194c

Please sign in to comment.