From c011833b579018f69336c63f0de222e116da4a6a Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 24 Jan 2005 10:59:19 +0000 Subject: Mac OS X gcc warns about a signed/unsigned comparison here. Explicit cast. [originally from svn r5188] --- ustring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.1