mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 02:43:03 +01:00
Reduce warnings on Win64
This commit is contained in:
parent
daad6d9d68
commit
e6bd5d5466
@ -43,7 +43,7 @@ namespace Firebird {
|
||||
// This macro controls merging of nodes of all B+ trees
|
||||
// Now it merges pages only when resulting page will be 3/4 filled or less
|
||||
// Be careful while changing this expression. N=2 must always cause merge
|
||||
static inline bool NEED_MERGE(int current_count, int page_count) {
|
||||
static inline bool NEED_MERGE(size_t current_count, size_t page_count) {
|
||||
return current_count * 4 / 3 <= page_count;
|
||||
}
|
||||
|
||||
@ -668,7 +668,7 @@ bool BePlusTree<Value, Key, Allocator, KeyOfValue, Cmp, LeafCount, NodeCount>::a
|
||||
// This array contains index of the element we try to add on page of each level
|
||||
// -1 means that element is on new page
|
||||
// In case of low memory condition we use this data to recover to innocent state
|
||||
int recovery_map[MAX_TREE_LEVEL];
|
||||
size_t recovery_map[MAX_TREE_LEVEL];
|
||||
|
||||
if (pos == LeafCount) {
|
||||
newLeaf->insert(0, item);
|
||||
|
Loading…
Reference in New Issue
Block a user