diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2005-06-09 16:13:14 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2005-06-09 16:13:14 +0000 |
commit | 3341b5deddf8238fae308e1a677203d45178925b (patch) | |
tree | 1816f15683132cfea26be784f9cd1aebe4e168e1 /ext/bz2/bz2.c | |
parent | fc92678b05b15236939d66969fcd58285a41eeda (diff) | |
download | php-git-3341b5deddf8238fae308e1a677203d45178925b.tar.gz |
Fixed compiler warning.
Diffstat (limited to 'ext/bz2/bz2.c')
-rw-r--r-- | ext/bz2/bz2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c index fe780fc252..2bf1e57de6 100644 --- a/ext/bz2/bz2.c +++ b/ext/bz2/bz2.c @@ -465,13 +465,13 @@ PHP_FUNCTION(bzdecompress) while ((error = BZ2_bzDecompress(&bzs)) == BZ_OK && bzs.avail_in > 0) { /* compression is better then 2:1, need to allocate more memory */ bzs.avail_out = source_len; - size = (bzs.total_out_hi32 << 32) + bzs.total_out_lo32; + size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; dest = erealloc(dest, size + bzs.avail_out + 1); bzs.next_out = dest + size; } if (error == BZ_STREAM_END || error == BZ_OK) { - size = (bzs.total_out_hi32 << 32) + bzs.total_out_lo32; + size = (bzs.total_out_hi32 * (unsigned int) -1) + bzs.total_out_lo32; dest = erealloc(dest, size + 1); dest[size] = '\0'; RETVAL_STRINGL(dest, size, 0); |