mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
fix bad cast
This commit is contained in:
parent
b15765412a
commit
5d430ad902
@ -120,11 +120,11 @@ static int php_stream_input_flush(php_stream *stream TSRMLS_DC) /* {{{ */
|
||||
|
||||
static int php_stream_input_seek(php_stream *stream, off_t offset, int whence, off_t *newoffset TSRMLS_DC) /* {{{ */
|
||||
{
|
||||
php_stream *inner = stream->abstract;
|
||||
php_stream_input_t *input = stream->abstract;
|
||||
|
||||
if (inner) {
|
||||
int sought = php_stream_seek(inner, offset, whence);
|
||||
*newoffset = inner->position;
|
||||
if (*input->body_ptr) {
|
||||
int sought = php_stream_seek(*input->body_ptr, offset, whence);
|
||||
*newoffset = (*input->body_ptr)->position;
|
||||
return sought;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user