Skip to content

Commit fa9cb10

Browse files
author
MarcoFalke
committed
refactor: Add explicit cast to expected_last_page to silence fuzz ISan
1 parent 4a020ca commit fa9cb10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/migrate.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ void BerkeleyRODatabase::Open()
551551
// }
552552

553553
// Check the last page number
554-
uint32_t expected_last_page = (size / page_size) - 1;
554+
uint32_t expected_last_page{uint32_t((size / page_size) - 1)};
555555
if (outer_meta.last_page != expected_last_page) {
556556
throw std::runtime_error("Last page number could not fit in file");
557557
}

0 commit comments

Comments
 (0)