[php-src] PR #17574: Refactor uncompress() loop in php_handle_swc()
| From: | cmb69 | Date: | Sat, 25 Jan 2025 19:50:00 +0000 |
| Subject: | [php-src] PR #17574: Refactor uncompress() loop in php_handle_swc() | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-30510@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/17574
Author: cmb69
As is, MSVC raises C4334[1] to hint at a potential code issue. We could solve this with a cast, but
actually the code is unclear as is because
factor is not the factor, but rather the
factor`s power. Thus we refactor the loop variant, and also fix the comment.
[1] <https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-3-c4334>