X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/0960a3d8eaea25ca71e3165556979b41ab10cb2b..c923eb7f496826aa29015bbef4e855ec42a948c7:/ustring.c diff --git a/ustring.c b/ustring.c index 13ee635..95477a5 100644 --- a/ustring.c +++ b/ustring.c @@ -182,7 +182,7 @@ char *utoa_locale_dup(wchar_t const *s) siz = wcstombs(ret, s, len); if (siz) { - assert(siz <= MB_CUR_MAX * len); + assert(siz <= (size_t)(MB_CUR_MAX * len)); ret[siz] = '\0'; ret = sresize(ret, siz+1, char); return ret;