summaryrefslogtreecommitdiff
path: root/ustring.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-01-24 10:59:19 +0000
committerSimon Tatham <anakin@pobox.com>2005-01-24 10:59:19 +0000
commitc011833b579018f69336c63f0de222e116da4a6a (patch)
tree5b76282e8377f8d49d4a7aabb28535f25337762b /ustring.c
parentf05862b9fa9772942ab9cb594d8c42e6a5576b11 (diff)
downloadhalibut-c011833b579018f69336c63f0de222e116da4a6a.zip
halibut-c011833b579018f69336c63f0de222e116da4a6a.tar.gz
halibut-c011833b579018f69336c63f0de222e116da4a6a.tar.bz2
halibut-c011833b579018f69336c63f0de222e116da4a6a.tar.xz
Mac OS X gcc warns about a signed/unsigned comparison here. Explicit cast.
[originally from svn r5188]
Diffstat (limited to 'ustring.c')
-rw-r--r--ustring.c2
1 files changed, 1 insertions, 1 deletions
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;