aboutsummaryrefslogtreecommitdiff
path: root/src/cuckoocache.h
diff options
context:
space:
mode:
authorPasta <pasta@dashboost.org>2021-12-18 12:50:58 -0500
committerpasta <pasta@dashboost.org>2023-01-03 19:31:29 -0600
commitf2fc03ec856d7d19a20c482514350cced38f9504 (patch)
treef783af485b07464f29e0f5876db293a5ce44ca03 /src/cuckoocache.h
parent3f8591d46b46cec2c4effc01f8822222087d74c4 (diff)
downloadbitcoin-f2fc03ec856d7d19a20c482514350cced38f9504.tar.xz
refactor: use braced init for integer constants instead of c style casts
Diffstat (limited to 'src/cuckoocache.h')
-rw-r--r--src/cuckoocache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuckoocache.h b/src/cuckoocache.h
index 61f553806e..6adcc74516 100644
--- a/src/cuckoocache.h
+++ b/src/cuckoocache.h
@@ -344,7 +344,7 @@ public:
collection_flags.setup(size);
epoch_flags.resize(size);
// Set to 45% as described above
- epoch_size = std::max((uint32_t)1, (45 * size) / 100);
+ epoch_size = std::max(uint32_t{1}, (45 * size) / 100);
// Initially set to wait for a whole epoch
epoch_heuristic_counter = epoch_size;
return size;