diff options
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r-- | ext/bcmath/bcmath.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c index 4b8c7c5f18..53d85a541b 100644 --- a/ext/bcmath/bcmath.c +++ b/ext/bcmath/bcmath.c @@ -206,9 +206,9 @@ 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; + size_t left_len, right_len; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); if (zend_parse_parameters(argc TSRMLS_CC, "ss|l", &left, &left_len, &right, &right_len, &scale_param) == FAILURE) { @@ -243,8 +243,8 @@ PHP_FUNCTION(bcadd) PHP_FUNCTION(bcsub) { char *left, *right; - int left_len, right_len; - long scale_param = 0; + size_t left_len, right_len; + zend_long scale_param = 0; bc_num first, second, result; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); @@ -280,8 +280,8 @@ PHP_FUNCTION(bcsub) PHP_FUNCTION(bcmul) { char *left, *right; - int left_len, right_len; - long scale_param = 0; + size_t left_len, right_len; + zend_long scale_param = 0; bc_num first, second, result; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); @@ -317,8 +317,8 @@ PHP_FUNCTION(bcmul) PHP_FUNCTION(bcdiv) { char *left, *right; - int left_len, right_len; - long scale_param = 0; + size_t left_len, right_len; + zend_long scale_param = 0; bc_num first, second, result; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); @@ -360,7 +360,7 @@ PHP_FUNCTION(bcdiv) PHP_FUNCTION(bcmod) { char *left, *right; - int left_len, right_len; + size_t left_len, right_len; bc_num first, second, result; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &left, &left_len, &right, &right_len) == FAILURE) { @@ -394,9 +394,9 @@ PHP_FUNCTION(bcmod) PHP_FUNCTION(bcpowmod) { char *left, *right, *modulous; - int left_len, right_len, modulous_len; + size_t 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) { @@ -435,8 +435,8 @@ PHP_FUNCTION(bcpowmod) PHP_FUNCTION(bcpow) { char *left, *right; - int left_len, right_len; - long scale_param = 0; + size_t left_len, right_len; + zend_long scale_param = 0; bc_num first, second, result; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); @@ -472,8 +472,8 @@ PHP_FUNCTION(bcpow) PHP_FUNCTION(bcsqrt) { char *left; - int left_len; - long scale_param = 0; + size_t left_len; + zend_long scale_param = 0; bc_num result; int scale = BCG(bc_precision), argc = ZEND_NUM_ARGS(); @@ -507,8 +507,8 @@ PHP_FUNCTION(bcsqrt) PHP_FUNCTION(bccomp) { char *left, *right; - int left_len, right_len; - long scale_param = 0; + size_t left_len, right_len; + 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; |