summaryrefslogtreecommitdiff
path: root/ext/gmp/gmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/gmp/gmp.c')
-rw-r--r--ext/gmp/gmp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c
index 75b157b890..7d591e2383 100644
--- a/ext/gmp/gmp.c
+++ b/ext/gmp/gmp.c
@@ -328,7 +328,7 @@ if (IS_GMP(zval)) { \
#define INIT_GMP_RETVAL(gmpnumber) \
gmp_create(return_value, &gmpnumber)
-static void gmp_strval(zval *result, mpz_t gmpnum, zend_long base);
+static void gmp_strval(zval *result, mpz_t gmpnum, int base);
static int convert_to_gmp(mpz_t gmpnumber, zval *val, zend_long base);
static void gmp_cmp(zval *return_value, zval *a_arg, zval *b_arg);
@@ -749,7 +749,7 @@ static int convert_to_gmp(mpz_t gmpnumber, zval *val, zend_long base)
}
/* }}} */
-static void gmp_strval(zval *result, mpz_t gmpnum, zend_long base) /* {{{ */
+static void gmp_strval(zval *result, mpz_t gmpnum, int base) /* {{{ */
{
size_t num_len;
zend_string *str;
@@ -1199,7 +1199,7 @@ ZEND_FUNCTION(gmp_strval)
FETCH_GMP_ZVAL(gmpnum, gmpnumber_arg, temp_a);
- gmp_strval(return_value, gmpnum, base);
+ gmp_strval(return_value, gmpnum, (int)base);
FREE_GMP_TEMP(temp_a);
}