diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2016-09-01 10:48:39 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2016-09-01 10:48:39 +0000 |
commit | ee53dd87f9d99cedb38af9fce16ff4fca4cbab89 (patch) | |
tree | f4edfeb85014650bf4fc32d42b2c7d0407ec96d3 /libexec | |
parent | 97072d957f586519f005508243061c570f4614f9 (diff) |
In 32 bits sqrt(val) + 1 can overflow, so some big primes still
aren't recognized as such, for example 18446744073709551577 given
in the commit message of factor.c r1.7 from NetBSD. Move the
return type of usqrt() from u_int32_t to u_int64_t.
ok guenther, tom, otto
Diffstat (limited to 'libexec')
0 files changed, 0 insertions, 0 deletions