kalle           Fri May 15 18:01:05 2009 UTC

  Modified files:              
    /php-src/ext/iconv  iconv.c 
  Log:
  Fix compiler warnings (only in HEAD), same style of silence as in 5.3
  
http://cvs.php.net/viewvc.cgi/php-src/ext/iconv/iconv.c?r1=1.174&r2=1.175&diff_format=u
Index: php-src/ext/iconv/iconv.c
diff -u php-src/ext/iconv/iconv.c:1.174 php-src/ext/iconv/iconv.c:1.175
--- php-src/ext/iconv/iconv.c:1.174     Thu Mar 26 20:01:56 2009
+++ php-src/ext/iconv/iconv.c   Fri May 15 18:01:05 2009
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: iconv.c,v 1.174 2009/03/26 20:01:56 felipe Exp $ */
+/* $Id: iconv.c,v 1.175 2009/05/15 18:01:05 kalle Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -753,15 +753,15 @@
                }
        }
 
-       if(len > total_len) {
+       if((unsigned int) len > total_len) {
                len = total_len;
        }
 
-       if (offset >= total_len) {
+       if ((unsigned int) offset >= total_len) {
                return PHP_ICONV_ERR_SUCCESS;
        }
 
-       if ((offset + len) > total_len) {
+       if ((unsigned int) (offset + len) > total_len) {
                /* trying to compute the length */
                len = total_len - offset;
        }



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to