Skip to content

Commit bda74db

Browse files
committed
Fix fuzzing test error
1 parent 9ff3ff9 commit bda74db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

httplib.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,7 @@ inline unsigned char to_lower(int c) {
342342
240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254,
343343
255,
344344
};
345-
assert(0 <= c && c < 256);
346-
return table[c];
345+
return table[(unsigned char)(char)c];
347346
}
348347

349348
struct case_ignore_equal {

0 commit comments

Comments
 (0)