]> granicus.if.org Git - php/commitdiff
on the contrary, string length is int
authorAntony Dovgal <tony2001@php.net>
Tue, 1 Jul 2008 07:36:59 +0000 (07:36 +0000)
committerAntony Dovgal <tony2001@php.net>
Tue, 1 Jul 2008 07:36:59 +0000 (07:36 +0000)
ext/bz2/bz2.c

index 4abed85acfb3ba9e161d24463f36c11c32b9299d..e65d34d93ce1fbcd53651e39474af335c89e2df1 100644 (file)
@@ -366,7 +366,7 @@ static PHP_FUNCTION(bzopen)
 {
        zval    **file;   /* The file to open */
        char     *mode;   /* The mode to open the stream with */
-       long      mode_len;
+       int      mode_len;
 
        BZFILE   *bz;     /* The compressed file stream */
        php_stream *stream = NULL;
@@ -488,7 +488,7 @@ static PHP_FUNCTION(bzcompress)
                                          block_size  = 4, /* Block size for compression algorithm */
                                          work_factor = 0, /* Work factor for compression algorithm */
                                          argc;            /* Argument count */
-       long              source_len;      /* Length of the source data */
+       int               source_len;      /* Length of the source data */
        unsigned int      dest_len;        /* Length of the destination buffer */ 
 
        argc = ZEND_NUM_ARGS();