summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2015-02-04 18:12:56 +0100
committerAnatol Belski <ab@php.net>2015-02-04 18:13:29 +0100
commit067902daee9b293eec5b319c466d3f12fa643a27 (patch)
treed7f790e7d5a5d878f933877db6373036e7805f38
parent4a1e4e2870bee73e6e5fc34cab246ca07d857257 (diff)
downloadphp-git-067902daee9b293eec5b319c466d3f12fa643a27.tar.gz
fix data type mismatch
-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);
}