[php-src] PR #17674: Solve C4267 warnings in win32/ioutil for x64
| From: | cmb69 | Date: | Sun, 02 Feb 2025 18:05:18 +0000 |
| Subject: | [php-src] PR #17674: Solve C4267 warnings in win32/ioutil for x64 | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30633@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17674
Author: cmb69
C4267[1] are about conversion from
size_t to a "smaller" type, causing
potential loss of data (aka. truncation).
In this case we can solve that cleanly (i.e. without casting and further checks) by changing the
affected variables to be of type DWORD.
[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4267>
---
Considering the [full list of
C4267](https://github.com/php/php-src/pull/17665#issuecomment-2629475568) this is just a drop in the
bucket, but as they are saying, constant dripping wears the stone. :)