diff options
author | Yossi Gottlieb <yossigo@gmail.com> | 2022-04-12 18:55:11 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 18:55:11 +0300 |
commit | bd8da0ca29b161e5bd47a6a98ce0a7a232ccda90 (patch) | |
tree | 87d9c6484593868f9fe670513c15bdb627e6e8b4 | |
parent | 6b403f56a523480a08b1143c676ce174d0d0251c (diff) | |
download | redis-bd8da0ca29b161e5bd47a6a98ce0a7a232ccda90.tar.gz |
Fix error/warning on Arm due to unsigned char. (#10572)
-rw-r--r-- | src/cli_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli_common.c b/src/cli_common.c index 33069017b..7b4775cde 100644 --- a/src/cli_common.c +++ b/src/cli_common.c @@ -390,7 +390,7 @@ sds escapeJsonString(sds s, const char *p, size_t len) { case '\t': s = sdscatlen(s,"\\t",2); break; case '\b': s = sdscatlen(s,"\\b",2); break; default: - s = sdscatprintf(s,(*p >= 0 && *p <= 0x1f) ? "\\u%04x" : "%c",*p); + s = sdscatprintf(s,*(unsigned char *)p <= 0x1f ? "\\u%04x" : "%c",*p); } p++; } |