diff options
| author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2025-12-11 20:34:05 +0100 |
|---|---|---|
| committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2025-12-22 22:58:06 +0100 |
| commit | 2f632a11a4f20dc4fa257f3df7276eda8dc7b178 (patch) | |
| tree | 323657507b5a49e3c8c32036dc50fa6a1a1f04ee /test | |
| parent | 60879ac4cc75bd9da5387dded4854c9fe2bc2c70 (diff) | |
| download | Project-Tick-2f632a11a4f20dc4fa257f3df7276eda8dc7b178.tar.gz Project-Tick-2f632a11a4f20dc4fa257f3df7276eda8dc7b178.zip | |
Use uint32_t for hash_head in update_hash/insert_string
Diffstat (limited to 'test')
| -rw-r--r-- | test/benchmarks/benchmark_insert_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/benchmarks/benchmark_insert_string.cc b/test/benchmarks/benchmark_insert_string.cc index b28e13ba7b..4bff1fda20 100644 --- a/test/benchmarks/benchmark_insert_string.cc +++ b/test/benchmarks/benchmark_insert_string.cc @@ -20,7 +20,7 @@ extern "C" { #define MAX_WSIZE 32768 #define TEST_WINDOW_SIZE (MAX_WSIZE * 2) -typedef Pos (* quick_insert_string_cb)(deflate_state *const s, uint32_t str); +typedef uint32_t (* quick_insert_string_cb)(deflate_state *const s, uint32_t str); // Base class with common setup/teardown for both insert_string benchmarks class insert_string_base: public benchmark::Fixture { @@ -141,7 +141,7 @@ public: // Benchmark quick_insert_string (single insertions) for (uint32_t i = 0; i < count; i++) { - Pos result = quick_insert_func(s, start_pos + i); + uint32_t result = quick_insert_func(s, start_pos + i); benchmark::DoNotOptimize(result); } } |
