8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 09:23:03 +01:00

Reduce warnings on Win64

This commit is contained in:
skidder 2007-10-28 08:46:14 +00:00
parent daad6d9d68
commit e6bd5d5466

View File

@ -43,7 +43,7 @@ namespace Firebird {
// This macro controls merging of nodes of all B+ trees // 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 // 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 // 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; 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 // This array contains index of the element we try to add on page of each level
// -1 means that element is on new page // -1 means that element is on new page
// In case of low memory condition we use this data to recover to innocent state // 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) { if (pos == LeafCount) {
newLeaf->insert(0, item); newLeaf->insert(0, item);