Unverified Commit bd8da0ca authored by Yossi Gottlieb's avatar Yossi Gottlieb Committed by GitHub
Browse files

Fix error/warning on Arm due to unsigned char. (#10572)

parent 6b403f56
...@@ -390,7 +390,7 @@ sds escapeJsonString(sds s, const char *p, size_t len) { ...@@ -390,7 +390,7 @@ sds escapeJsonString(sds s, const char *p, size_t len) {
case '\t': s = sdscatlen(s,"\\t",2); break; case '\t': s = sdscatlen(s,"\\t",2); break;
case '\b': s = sdscatlen(s,"\\b",2); break; case '\b': s = sdscatlen(s,"\\b",2); break;
default: default:
s = sdscatprintf(s,(*p >= 0 && *p <= 0x1f) ? "\\u%04x" : "%c",*p); s = sdscatprintf(s,*(unsigned char *)p <= 0x1f ? "\\u%04x" : "%c",*p);
} }
p++; p++;
} }
......
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