diff options
| author | tb <> | 2022-08-12 16:13:40 +0000 |
|---|---|---|
| committer | tb <> | 2022-08-12 16:13:40 +0000 |
| commit | ec013bd09743816e8923fc54fa98f4f013fd22c0 (patch) | |
| tree | d4f6b422df49770c8313f2e0464c2e474ed2837c /src | |
| parent | 3d634dffcb9f236d71753e5ee032f584da664ffd (diff) | |
| download | openbsd-ec013bd09743816e8923fc54fa98f4f013fd22c0.tar.gz openbsd-ec013bd09743816e8923fc54fa98f4f013fd22c0.tar.bz2 openbsd-ec013bd09743816e8923fc54fa98f4f013fd22c0.zip | |
Fix upper bound in a for loop (no functional change).
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/general/bn_isqrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/general/bn_isqrt.c b/src/regress/lib/libcrypto/bn/general/bn_isqrt.c index 0444666e11..40b23f8dfd 100644 --- a/src/regress/lib/libcrypto/bn/general/bn_isqrt.c +++ b/src/regress/lib/libcrypto/bn/general/bn_isqrt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_isqrt.c,v 1.5 2022/08/12 16:12:39 tb Exp $ */ | 1 | /* $OpenBSD: bn_isqrt.c,v 1.6 2022/08/12 16:13:40 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org> |
| 4 | * | 4 | * |
| @@ -76,7 +76,7 @@ check_tables(int print) | |||
| 76 | for (i = 0; i < sizeof(fill) / sizeof(fill[0]); i++) { | 76 | for (i = 0; i < sizeof(fill) / sizeof(fill[0]); i++) { |
| 77 | memset(q, 0, sizeof(q)); | 77 | memset(q, 0, sizeof(q)); |
| 78 | 78 | ||
| 79 | for (j = 0; j <= fill[i]; j++) | 79 | for (j = 0; j < fill[i]; j++) |
| 80 | q[(j * j) % fill[i]] = 1; | 80 | q[(j * j) % fill[i]] = 1; |
| 81 | 81 | ||
| 82 | if ((table = get_table(fill[i])) == NULL) { | 82 | if ((table = get_table(fill[i])) == NULL) { |
