summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/malloc.c
diff options
context:
space:
mode:
authortb <>2023-05-09 05:38:11 +0000
committertb <>2023-05-09 05:38:11 +0000
commitd10ac5ed91efbdc49fc0b13ac24a411c020beaab (patch)
tree4c67696d92f153d2f2ab95413bb44eca0e41ae56 /src/lib/libc/stdlib/malloc.c
parenteb5c4831ebe1fd7e22ce96c554a2521c81a1ea95 (diff)
downloadopenbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.tar.gz
openbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.tar.bz2
openbsd-d10ac5ed91efbdc49fc0b13ac24a411c020beaab.zip
bn_exp: also special case -1 modulus
Anything taken to the power of 0 is 1, and then reduced mod 1 or mod -1 it will be 0. If "anything" includes 0 or not is a matter of convention, but it should not depend on the sign of the modulus... Reported by Guido Vranken ok jsing (who had the same diff)
Diffstat (limited to 'src/lib/libc/stdlib/malloc.c')
0 files changed, 0 insertions, 0 deletions