mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix merge
This commit is contained in:
parent
33d41da347
commit
4bc97db0b8
1 changed files with 3 additions and 2 deletions
|
@ -439,8 +439,9 @@ PHP_FUNCTION(bcpowmod)
|
|||
scale_int = (int) ((int)scale < 0 ? 0 : scale);
|
||||
|
||||
if (bc_raisemod(first, second, mod, &result, scale_int) != -1) {
|
||||
if (result->n_scale > scale) {
|
||||
result->n_scale = (int)scale;
|
||||
if (result->n_scale > scale_int) {
|
||||
result = split_bc_num(result);
|
||||
result->n_scale = scale_int;
|
||||
}
|
||||
RETVAL_STR(bc_num2str(result));
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue