Skip to content

Commit 67d6160

Browse files
committed
streams: use int type instead of long
The flags variable is passed to the filter virtual function that requires an int
1 parent c9836b0 commit 67d6160

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/streams/filter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ PHPAPI zend_result _php_stream_filter_flush(php_stream_filter *filter, bool fini
403403
php_stream_filter *current;
404404
php_stream *stream;
405405
size_t flushed_size = 0;
406-
long flags = (finish ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC);
406+
int flags = (finish ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC);
407407

408408
if (!filter->chain || !filter->chain->stream) {
409409
/* Filter is not attached to a chain, or chain is somehow not part of a stream */

0 commit comments

Comments
 (0)