summaryrefslogtreecommitdiff
path: root/ext/bcmath
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2017-09-06 14:53:27 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2017-09-06 14:53:27 +0200
commit1650882019a34f24cd872d02400d19ea81ce9103 (patch)
treedfcdf0a4500ac3aba147b0e41815dcff61c4a5fa /ext/bcmath
parent14b0adba5fac7d9f96b2a7588eb11e3cf33b7dc2 (diff)
downloadphp-git-1650882019a34f24cd872d02400d19ea81ce9103.tar.gz
Fix proto and indentation
Diffstat (limited to 'ext/bcmath')
-rw-r--r--ext/bcmath/bcmath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 3c45ab5141..8b3e3d9514 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -577,7 +577,7 @@ PHP_FUNCTION(bccomp)
}
/* }}} */
-/* {{{ proto bool bcscale(int scale)
+/* {{{ proto int bcscale([int scale])
Sets default scale parameter for all bc math functions */
PHP_FUNCTION(bcscale)
{
@@ -591,7 +591,7 @@ PHP_FUNCTION(bcscale)
old_scale = BCG(bc_precision);
if (ZEND_NUM_ARGS() == 1) {
- BCG(bc_precision) = ((int)new_scale < 0) ? 0 : new_scale;
+ BCG(bc_precision) = ((int)new_scale < 0) ? 0 : new_scale;
}
RETURN_LONG(old_scale);