diff options
author | Steven G. Johnson <stevenj@mit.edu> | 2015-11-24 16:53:05 -0500 |
---|---|---|
committer | Steven G. Johnson <stevenj@mit.edu> | 2015-11-24 16:53:05 -0500 |
commit | 6b510deff274dc79b4e324abef5fbb45a8162861 (patch) | |
tree | 252ef4ce88b7c17f2f9639a26cafb6db45937231 /utf8proc.c | |
parent | 6d4d7a9acf7187f272a2b246a45c68b153faf0be (diff) | |
parent | 4fc2d8234d17624525552735c882486367c5521d (diff) | |
download | libutf8proc-6b510deff274dc79b4e324abef5fbb45a8162861.tar.gz libutf8proc-6b510deff274dc79b4e324abef5fbb45a8162861.tar.bz2 |
Merge pull request #61 from fgsch/issue_60
Silence warning with -Wextra
Diffstat (limited to 'utf8proc.c')
-rw-r--r-- | utf8proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -436,7 +436,8 @@ UTF8PROC_DLLEXPORT utf8proc_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(utf8proc_int32_t)/2) + if (wpos < 0 || + wpos > (utf8proc_ssize_t)(SSIZE_MAX/sizeof(utf8proc_int32_t)/2)) return UTF8PROC_ERROR_OVERFLOW; } } |