com php-src: Fix proto and indentation: ext/bcmath/bcmath.c
| From: | Christoph Michael Becker | Date: | Wed, 06 Sep 2017 12:53:27 +0000 |
| Subject: | com php-src: Fix proto and indentation: ext/bcmath/bcmath.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99417@lists.php.net to get a copy of this message | ||
Commit: 1650882019a34f24cd872d02400d19ea81ce9103
Author: Christoph M. Becker <cmbecker69@gmx.de> Wed, 6 Sep 2017 14:53:27 +0200
Parents: 14b0adba5fac7d9f96b2a7588eb11e3cf33b7dc2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1650882019a34f24cd872d02400d19ea81ce9103
Log:
Fix proto and indentation
Changed paths:
M ext/bcmath/bcmath.c
Diff:
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 3c45ab5..8b3e3d9 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);