diff options
| author | Anatol Belski <ab@php.net> | 2015-02-04 18:12:56 +0100 |
|---|---|---|
| committer | Anatol Belski <ab@php.net> | 2015-02-04 18:13:29 +0100 |
| commit | 067902daee9b293eec5b319c466d3f12fa643a27 (patch) | |
| tree | d7f790e7d5a5d878f933877db6373036e7805f38 /ext/gmp/gmp.c | |
| parent | 4a1e4e2870bee73e6e5fc34cab246ca07d857257 (diff) | |
| download | php-git-067902daee9b293eec5b319c466d3f12fa643a27.tar.gz | |
fix data type mismatch
Diffstat (limited to 'ext/gmp/gmp.c')
| -rw-r--r-- | ext/gmp/gmp.c | 6 |
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); } |
