You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
* tools/trietool.c (conv_to_alpha):
- Check iconv() return value against (size_t) -1, rather than
for its negativity, as size_t can be unsigned.
Thanks Daniel Macks for the report on Issue #3.
#3
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: