summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r--ext/bcmath/bcmath.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 4b8c7c5f18..a6775c8c84 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -206,7 +206,7 @@ static void php_str2num(bc_num *num, char *str TSRMLS_DC)
PHP_FUNCTION(bcadd)
{
char *left, *right;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second, result;
int left_len, right_len;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -244,7 +244,7 @@ PHP_FUNCTION(bcsub)
{
char *left, *right;
int left_len, right_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second, result;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -281,7 +281,7 @@ PHP_FUNCTION(bcmul)
{
char *left, *right;
int left_len, right_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second, result;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -318,7 +318,7 @@ PHP_FUNCTION(bcdiv)
{
char *left, *right;
int left_len, right_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second, result;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -396,7 +396,7 @@ PHP_FUNCTION(bcpowmod)
char *left, *right, *modulous;
int left_len, right_len, modulous_len;
bc_num first, second, mod, result;
- long scale = BCG(bc_precision);
+ zend_long scale = BCG(bc_precision);
int scale_int;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sss|l", &left, &left_len, &right, &right_len, &modulous, &modulous_len, &scale) == FAILURE) {
@@ -436,7 +436,7 @@ PHP_FUNCTION(bcpow)
{
char *left, *right;
int left_len, right_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second, result;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -473,7 +473,7 @@ PHP_FUNCTION(bcsqrt)
{
char *left;
int left_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num result;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -508,7 +508,7 @@ PHP_FUNCTION(bccomp)
{
char *left, *right;
int left_len, right_len;
- long scale_param = 0;
+ zend_long scale_param = 0;
bc_num first, second;
int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS();
@@ -537,7 +537,7 @@ PHP_FUNCTION(bccomp)
Sets default scale parameter for all bc math functions */
PHP_FUNCTION(bcscale)
{
- long new_scale;
+ zend_long new_scale;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &new_scale) == FAILURE) {
return;