summaryrefslogtreecommitdiff
path: root/ext/standard/image.c
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-26 11:23:25 +0200
committerAnatol Belski <ab@php.net>2014-08-26 11:26:53 +0200
commit202e8db1dc8e1203039327d81ce6fd82c1c2d909 (patch)
tree05868887a0786140e5a867333b5e374f6a34fe51 /ext/standard/image.c
parent7cbbb371270fe369eb30a570df95bbdcf42a82e4 (diff)
downloadphp-git-202e8db1dc8e1203039327d81ce6fd82c1c2d909.tar.gz
fixed several long vs zend_long casts
Diffstat (limited to 'ext/standard/image.c')
-rw-r--r--ext/standard/image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/image.c b/ext/standard/image.c
index 79e26c6310..5488a80d3f 100644
--- a/ext/standard/image.c
+++ b/ext/standard/image.c
@@ -425,13 +425,13 @@ static unsigned int php_next_marker(php_stream * stream, int last_marker, int co
* skip over a variable-length block; assumes proper length marker */
static int php_skip_variable(php_stream * stream TSRMLS_DC)
{
- off_t length = ((unsigned int)php_read2(stream TSRMLS_CC));
+ zend_off_t length = ((unsigned int)php_read2(stream TSRMLS_CC));
if (length < 2) {
return 0;
}
length = length - 2;
- php_stream_seek(stream, (long)length, SEEK_CUR);
+ php_stream_seek(stream, (zend_long)length, SEEK_CUR);
return 1;
}
/* }}} */
@@ -453,7 +453,7 @@ static int php_read_APP(php_stream * stream, unsigned int marker, zval *info TSR
buffer = emalloc(length);
- if (php_stream_read(stream, buffer, (long) length) <= 0) {
+ if (php_stream_read(stream, buffer, (zend_long) length) <= 0) {
efree(buffer);
return 0;
}