[php-src] PR #20712: MSVC: Fix warning C4244 in zend_get_gc_buffer_use
| From: | wmamrak | Date: | Mon, 15 Dec 2025 16:22:30 +0000 |
| Subject: | [php-src] PR #20712: MSVC: Fix warning C4244 in zend_get_gc_buffer_use | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-34289@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/20712
Author: wmamrak
This PR addresses a compilation warning of the form: warning C4244: '=': conversion from
'__int64' to 'int', possible loss of data The expression gc_buffer->cur -
gc_buffer->start produces a temporary of type ptrdiff_t, which is then assigned to an int. It
causes said compilation warning when these types do not match.