diff options
| author | tb <> | 2026-07-21 04:55:34 +0000 |
|---|---|---|
| committer | tb <> | 2026-07-21 04:55:34 +0000 |
| commit | 1cf0a1493f6c88cf1b6b29ab13034d3dcb5f676d (patch) | |
| tree | 00e97590804370858cbed68be9d7e4de28cccb35 /src | |
| parent | 39c28e9bf339acca5cf663b7b791ad7126c627da (diff) | |
| download | openbsd-1cf0a1493f6c88cf1b6b29ab13034d3dcb5f676d.tar.gz openbsd-1cf0a1493f6c88cf1b6b29ab13034d3dcb5f676d.tar.bz2 openbsd-1cf0a1493f6c88cf1b6b29ab13034d3dcb5f676d.zip | |
bn_mul_div: use (unsigned long long) instead of (uint64_t) to print with %llu
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mul_div.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mul_div.c b/src/regress/lib/libcrypto/bn/bn_mul_div.c index dbad01004e..41280e385c 100644 --- a/src/regress/lib/libcrypto/bn/bn_mul_div.c +++ b/src/regress/lib/libcrypto/bn/bn_mul_div.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_mul_div.c,v 1.8 2025/08/12 10:29:35 jsing Exp $ */ | 1 | /* $OpenBSD: bn_mul_div.c,v 1.9 2026/07/21 04:55:34 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2023 Joel Sing <jsing@openbsd.org> |
| 4 | * | 4 | * |
| @@ -399,7 +399,7 @@ benchmark_run(const struct benchmark *bm, int seconds) | |||
| 399 | timespecsub(&end, &start, &duration); | 399 | timespecsub(&end, &start, &duration); |
| 400 | fprintf(stderr, "%d iterations in %f seconds - %llu op/s\n", i, | 400 | fprintf(stderr, "%d iterations in %f seconds - %llu op/s\n", i, |
| 401 | duration.tv_sec + duration.tv_nsec / 1000000000.0, | 401 | duration.tv_sec + duration.tv_nsec / 1000000000.0, |
| 402 | (uint64_t)i * 1000000000 / | 402 | (unsigned long long)i * 1000000000 / |
| 403 | (duration.tv_sec * 1000000000 + duration.tv_nsec)); | 403 | (duration.tv_sec * 1000000000 + duration.tv_nsec)); |
| 404 | 404 | ||
| 405 | BN_CTX_end(bn_ctx); | 405 | BN_CTX_end(bn_ctx); |
