]> granicus.if.org Git - php/commitdiff
fix datatype mismatch warnings
authorAnatol Belski <ab@php.net>
Wed, 22 Oct 2014 17:46:51 +0000 (19:46 +0200)
committerAnatol Belski <ab@php.net>
Wed, 22 Oct 2014 18:46:30 +0000 (20:46 +0200)
ext/standard/dir.c

index 7b4ab1cd3e7a5df0b7115d21d2343da26f098322..a822ac4da055859e33df42f89e4c848b30094cf5 100644 (file)
@@ -87,7 +87,7 @@ static zend_class_entry *dir_class_entry_ptr;
                        } \
                        ZEND_FETCH_RESOURCE(dirp, php_stream *, tmp, -1, "Directory", php_file_le_stream()); \
                } else { \
-                       ZEND_FETCH_RESOURCE(dirp, php_stream *, 0, DIRG(default_dir)->handle, "Directory", php_file_le_stream()); \
+                       ZEND_FETCH_RESOURCE(dirp, php_stream *, 0, (int)DIRG(default_dir)->handle, "Directory", php_file_le_stream()); \
                } \
        } else { \
                dirp = (php_stream *) zend_fetch_resource(id TSRMLS_CC, -1, "Directory", NULL, 1, php_file_le_stream()); \
@@ -463,7 +463,7 @@ PHP_FUNCTION(glob)
                        cwd[2] = '\0';
                }
 #endif
-               cwd_skip = strlen(cwd)+1;
+               cwd_skip = (int)strlen(cwd)+1;
 
                snprintf(work_pattern, MAXPATHLEN, "%s%c%s", cwd, DEFAULT_SLASH, pattern);
                pattern = work_pattern;