tautological-compare in trietool.c #3
Closed
Comments
Fix has been committed. Thanks for your report. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building libdatrie-0.2.10 on OS X 10.11, I get a warning:
res is (correctly per iconv prototype) a size_t, but size_t is generally some sort of unsigned int: the warning seems on target. The iconv manpage says that the return in case of error isn't "-1" but is "(size_t)(-1)": -1 cast to the return type. And its example code is:
So trietool.c at line 128 should be changed:
The text was updated successfully, but these errors were encountered: