refactor: Add explicit cast to expected_last_page to silence fuzz ISan

This commit is contained in:
MarcoFalke committed 2024-06-07 17:30:38 +02:00
1 parent 4a020ca443
commit fa9cb101cf
1 file changed
+1 -1
+1 -1
View File
@@ -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");
}