com php-src: fix merge: ext/bcmath/bcmath.c
| From: | Anatol Belski | Date: | Wed, 27 Apr 2016 11:37:48 +0000 |
| Subject: | com php-src: fix merge: ext/bcmath/bcmath.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91879@lists.php.net to get a copy of this message | ||
Commit: 66f92ec63bb5f062986e86245e1dc049561119ad
Author: Anatol Belski <ab@php.net> Wed, 27 Apr 2016 12:24:28 +0200
Parents: 4c0d91caef05aa122e0bec1b177237ea252ff27b
Branches: PHP-7.0.6
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=66f92ec63bb5f062986e86245e1dc049561119ad
Log:
fix merge
Changed paths:
M ext/bcmath/bcmath.c
Diff:
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 7100367..10450f1 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -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 {