]> granicus.if.org Git - php/commitdiff
- Nuke warning. This signed/unsigned stuff gets really annoying sometimes.
authorAndi Gutmans <andi@php.net>
Wed, 25 Apr 2001 05:43:30 +0000 (05:43 +0000)
committerAndi Gutmans <andi@php.net>
Wed, 25 Apr 2001 05:43:30 +0000 (05:43 +0000)
ext/standard/filestat.c

index b3443a7a8c95536432dbe30a0b8ca16684597b00..51f9b564091070df768cf74e35b350edc42a2d0f 100644 (file)
@@ -447,7 +447,7 @@ PHP_FUNCTION(clearstatcache)
 /* }}} */
 
 
-static void php_stat(const char *filename, int filename_length, int type, pval *return_value)
+static void php_stat(const char *filename, php_stat_len filename_length, int type, pval *return_value)
 {
        struct stat *stat_sb;
        int rmask=S_IROTH,wmask=S_IWOTH,xmask=S_IXOTH; /* access rights defaults to other */
@@ -637,7 +637,7 @@ void name(INTERNAL_FUNCTION_PARAMETERS) { \
                WRONG_PARAM_COUNT; \
        } \
        convert_to_string_ex(filename); \
-       php_stat(Z_STRVAL_PP(filename), Z_STRLEN_PP(filename), funcnum, return_value); \
+       php_stat(Z_STRVAL_PP(filename), (php_stat_len) Z_STRLEN_PP(filename), funcnum, return_value); \
 }
 
 /* {{{ proto int fileperms(string filename)