another pedantic error in ci

pull/2687/head
Bailey Chittle 3 years ago
parent 530ccd9056
commit 8cabd57215

@ -53,16 +53,16 @@ inline void scramble(std::string& dst, string_view_t s)
default: default:
if (c <= '\x0f') { if (c <= '\x0f') {
char buf[] = "\\u0000"; char buf[] = "\\u0000";
buf[5] = (unsigned char)(buf[5] + c); buf[5] = (char)(buf[5] + c);
if (c >= '\x0a') if (c >= '\x0a')
buf[5] = (unsigned char)(buf[5] + ('a' - ':')); buf[5] = (char)(buf[5] + ('a' - ':'));
replace(buf); replace(buf);
} }
else if (c <= '\x1f' || c == 0x7f) { else if (c <= '\x1f' || c == 0x7f) {
char buf[] = "\\u0010"; char buf[] = "\\u0010";
buf[5] = (unsigned char)(buf[5] + (c - 16)); buf[5] = (char)(buf[5] + (c - 16));
if (c >= '\x1a') if (c >= '\x1a')
buf[5] = (unsigned char)(buf[5] + ('a' - ':')); buf[5] = (char)(buf[5] + ('a' - ':'));
replace(buf); replace(buf);
} }
else else

Loading…
Cancel
Save