mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge c6de072a21 into merged_master (Bitcoin PR bitcoin/bitcoin#30248)
This commit is contained in:
commit
7a85463efb
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue