moriyoshi               Thu Jan  9 23:32:25 2003 EDT

  Modified files:              
    /php4/ext/iconv     iconv.c 
  Log:
  Added missing cast operators
  
  
Index: php4/ext/iconv/iconv.c
diff -u php4/ext/iconv/iconv.c:1.80 php4/ext/iconv/iconv.c:1.81
--- php4/ext/iconv/iconv.c:1.80 Mon Jan  6 10:47:24 2003
+++ php4/ext/iconv/iconv.c      Thu Jan  9 23:32:25 2003
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: iconv.c,v 1.80 2003/01/06 15:47:24 moriyoshi Exp $ */
+/* $Id: iconv.c,v 1.81 2003/01/10 04:32:25 moriyoshi Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -641,7 +641,7 @@
                        }
                }
 
-               if (cnt >= offset) {
+               if (cnt >= (unsigned int)offset) {
                        if (cd2 == NULL) {
                                cd2 = icv_open(enc, GENERIC_SUPERSET_NAME);
 
@@ -790,7 +790,7 @@
                        }
                }
                if (offset >= 0) {
-                       if (cnt >= offset) {
+                       if (cnt >= (unsigned int)offset) {
                                if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) {
                                        if (match_ofs == (unsigned int)-1) {
                                                match_ofs = cnt;



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

Reply via email to