[php-src] PR #15632: ext/bcmath: Removed unnecessary bc_free_num and bc_init_num
| From: | SakiTakamachi | Date: | Thu, 29 Aug 2024 09:46:05 +0000 |
| Subject: | [php-src] PR #15632: ext/bcmath: Removed unnecessary bc_free_num and bc_init_num | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28260@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/15632
Author: SakiTakamachi
Removed unnecessary
bc_free_num() and bc_init_num().
When str2num failed, used to copy BCG(_ZERO_) to num, so stopped doing
that.
This eliminates the need to call bc_free_num on failure.