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
commita12cb743f19d02d79b27833e923b1eda920e4381 (patch)
tree4c67696d92f153d2f2ab95413bb44eca0e41ae56 /src/lib/libc/stdlib/malloc.c
parentbddde9f4a7b728245a440b7da9afc22565f90e1f (diff)
downloadopenbsd-a12cb743f19d02d79b27833e923b1eda920e4381.tar.gz
openbsd-a12cb743f19d02d79b27833e923b1eda920e4381.tar.bz2
openbsd-a12cb743f19d02d79b27833e923b1eda920e4381.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