Skip to content

Commit

Permalink
libcaption: Ensure the signedness of comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
r-value committed Aug 2, 2023
1 parent 8feb06f commit 17a1912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/libcaption/src/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ size_t utf8_char_length(const utf8_char_t* c)
int utf8_char_whitespace(const utf8_char_t* c)
{
// 0x7F is DEL
if (!c || (c[0] >= 0 && c[0] <= ' ') || c[0] == 0x7F) {
if (!c || ((signed char)c[0] >= 0 && c[0] <= ' ') || c[0] == 0x7F) {
return 1;
}

Expand Down

0 comments on commit 17a1912

Please sign in to comment.