diff options
Diffstat (limited to 'utils/utf8proc.c')
-rw-r--r-- | utils/utf8proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/utf8proc.c b/utils/utf8proc.c index 0ea1556b9..3e0b25f58 100644 --- a/utils/utf8proc.c +++ b/utils/utf8proc.c @@ -387,7 +387,7 @@ ssize_t utf8proc_decompose( if (decomp_result < 0) return decomp_result; wpos += decomp_result; /* prohibiting integer overflows due to too long strings: */ - if (wpos < 0 || wpos > SSIZE_MAX/sizeof(int32_t)/2) + if (wpos < 0 || wpos > (ssize_t)(SSIZE_MAX/sizeof(int32_t)/2)) return UTF8PROC_ERROR_OVERFLOW; } } |