diff options
author | foobar <sniper@php.net> | 2002-03-27 23:47:06 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2002-03-27 23:47:06 +0000 |
commit | bf663c9746fe775f2b176dbbbcd17cc30756ddf7 (patch) | |
tree | 480b1a5f51c7c863d66c9d60a0021a35fbcd5273 /ext/gmp | |
parent | 49ba2a983b42fa7447883afcf410181e6601fd48 (diff) | |
download | php-git-bf663c9746fe775f2b176dbbbcd17cc30756ddf7.tar.gz |
Fixed bug: #16237
Diffstat (limited to 'ext/gmp')
-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; |