From 67d6160462a3a7ad7dedffda44b0770f62d6a7de Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Sat, 12 Jul 2025 14:27:31 +0100 Subject: [PATCH] streams: use int type instead of long The flags variable is passed to the filter virtual function that requires an int --- main/streams/filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/streams/filter.c b/main/streams/filter.c index 2a48fae79f0..0a698737b6d 100644 --- a/main/streams/filter.c +++ b/main/streams/filter.c @@ -403,7 +403,7 @@ PHPAPI zend_result _php_stream_filter_flush(php_stream_filter *filter, bool fini php_stream_filter *current; php_stream *stream; size_t flushed_size = 0; - long flags = (finish ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC); + int flags = (finish ? PSFS_FLAG_FLUSH_CLOSE : PSFS_FLAG_FLUSH_INC); if (!filter->chain || !filter->chain->stream) { /* Filter is not attached to a chain, or chain is somehow not part of a stream */