summaryrefslogtreecommitdiffhomepage
path: root/src/test-performance.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2022-01-06 11:44:40 +0100
committerRoland Reichwein <mail@reichwein.it>2022-01-06 11:44:40 +0100
commit5ad6e853eaee2533f934575b8509e0e0c5da12e5 (patch)
tree8b5f4d19e3e92059ad3e78aad4d368507ce7694b /src/test-performance.cpp
parent8126c217931363a05121f56f5790758ced9270d1 (diff)
Type corrections
Diffstat (limited to 'src/test-performance.cpp')
-rw-r--r--src/test-performance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test-performance.cpp b/src/test-performance.cpp
index 64535c6..90397b7 100644
--- a/src/test-performance.cpp
+++ b/src/test-performance.cpp
@@ -54,7 +54,7 @@ T generate_value(T max = std::numeric_limits<T>::max())
uint32_t value{};
do {
- for (int i = 0; i < sizeof(value); ++i) {
+ for (size_t i = 0; i < sizeof(value); ++i) {
value = (value << 8) | generate_byte();
}
} while (static_cast<uint64_t>(value) >= max_modulo);