diff options
| author | Christoph M. Becker <cmbecker69@gmx.de> | 2017-09-06 23:40:55 +0200 |
|---|---|---|
| committer | Christoph M. Becker <cmbecker69@gmx.de> | 2017-09-06 23:41:46 +0200 |
| commit | 5ce744091c4c51fae7e46d48d146f35479094e3a (patch) | |
| tree | 79958e48bc898061366b0dfadf18d16af0bc84bc /ext/bcmath/libbcmath/src/divmod.c | |
| parent | d78a7909c8cd6485d456550b2f9e811068f85bb5 (diff) | |
| parent | d724d8c1076dc6e7ca5665fe68753e71440655c1 (diff) | |
| download | php-git-5ce744091c4c51fae7e46d48d146f35479094e3a.tar.gz | |
Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
Fixed bug #44995 (bcpowmod() fails if scale != 0)
Diffstat (limited to 'ext/bcmath/libbcmath/src/divmod.c')
| -rw-r--r-- | ext/bcmath/libbcmath/src/divmod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bcmath/libbcmath/src/divmod.c b/ext/bcmath/libbcmath/src/divmod.c index d7aaa3509d..08c2f8a2a2 100644 --- a/ext/bcmath/libbcmath/src/divmod.c +++ b/ext/bcmath/libbcmath/src/divmod.c @@ -59,7 +59,7 @@ bc_divmod (bc_num num1, bc_num num2, bc_num *quot, bc_num *rem, int scale) bc_init_num(&temp); /* Calculate it. */ - bc_divide (num1, num2, &temp, scale); + bc_divide (num1, num2, &temp, 0); if (quot) quotient = bc_copy_num (temp); bc_multiply (temp, num2, &temp, rscale); |
