Skip to content

Commit 654ecc7

Browse files
LamentXU123Girgias
andcommitted
add comments
Co-Authored-By: Gina Peter Banyard <girgias@php.net>
1 parent 72abf49 commit 654ecc7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ext/gmp/gmp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,6 +1206,7 @@ ZEND_FUNCTION(gmp_powm_sec)
12061206
RETURN_THROWS();
12071207
}
12081208

1209+
/* Zero is not odd, so this also rejects a zero modulus. */
12091210
if (!mpz_odd_p(gmpnum_mod)) {
12101211
zend_argument_value_error(3, "must be odd");
12111212
RETURN_THROWS();

0 commit comments

Comments
 (0)