diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-06-07 17:34:39 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2024-06-07 17:30:38 +0200 |
commit | fa9cb101cf33b57b2c043b29f1f3d55b990ba4c6 (patch) | |
tree | 95cb416329aca33ee160dd95a44a4c6a015cdca2 /src/wallet | |
parent | 4a020ca443ba370bf41583962d16aa8551876f53 (diff) |
refactor: Add explicit cast to expected_last_page to silence fuzz ISan
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/migrate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/migrate.cpp b/src/wallet/migrate.cpp index 09254a76ad..d7d8577374 100644 --- a/src/wallet/migrate.cpp +++ b/src/wallet/migrate.cpp @@ -551,7 +551,7 @@ void BerkeleyRODatabase::Open() // } // Check the last page number - uint32_t expected_last_page = (size / page_size) - 1; + uint32_t expected_last_page{uint32_t((size / page_size) - 1)}; if (outer_meta.last_page != expected_last_page) { throw std::runtime_error("Last page number could not fit in file"); } |