diff options
Diffstat (limited to 'ext/gmp/gmp.c')
-rw-r--r-- | ext/gmp/gmp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/gmp/gmp.c b/ext/gmp/gmp.c index 7f133d0473..56f53f63c5 100644 --- a/ext/gmp/gmp.c +++ b/ext/gmp/gmp.c @@ -1107,12 +1107,12 @@ ZEND_FUNCTION(gmp_xor) Sets or clear bit in a */ ZEND_FUNCTION(gmp_setbit) { - zval **a_arg, **ind_arg, **sc_arg; + zval **a_arg, **ind_arg, **set_c_arg; int argc, index, set=1; mpz_t *gmpnum_a; argc = ZEND_NUM_ARGS(); - if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &a_arg, &ind_arg, &sc_arg) == FAILURE){ + if (argc < 2 || argc > 3 || zend_get_parameters_ex(argc, &a_arg, &ind_arg, &set_c_arg) == FAILURE){ WRONG_PARAM_COUNT; } @@ -1123,8 +1123,8 @@ ZEND_FUNCTION(gmp_setbit) switch (argc) { case 3: - convert_to_long_ex(sc_arg); - set = Z_LVAL_PP(sc_arg); + convert_to_long_ex(set_c_arg); + set = Z_LVAL_PP(set_c_arg); break; case 2: set = 1; |