Fixed warnings when building the bfs_shell.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23462 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1002,7 +1002,7 @@ BPlusTree::_SplitNode(bplustree_node *node, off_t nodeOffset,
|
|||||||
int32 keyIndex = *_keyIndex; // can become less than zero!
|
int32 keyIndex = *_keyIndex; // can become less than zero!
|
||||||
|
|
||||||
if (keyIndex > node->NumKeys()) {
|
if (keyIndex > node->NumKeys()) {
|
||||||
FATAL(("key index out of bounds: %ld, num keys: %u\n", keyIndex,
|
FATAL(("key index out of bounds: %d, num keys: %u\n", (int)keyIndex,
|
||||||
node->NumKeys()));
|
node->NumKeys()));
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -380,8 +380,8 @@ Journal::_ReplayRunArray(int32 *_start)
|
|||||||
CachedBlock cached(fVolume);
|
CachedBlock cached(fVolume);
|
||||||
for (int32 index = 0; index < array->CountRuns(); index++) {
|
for (int32 index = 0; index < array->CountRuns(); index++) {
|
||||||
const block_run &run = array->RunAt(index);
|
const block_run &run = array->RunAt(index);
|
||||||
INFORM(("replay block run %lu:%u:%u in log at %Ld!\n",
|
INFORM(("replay block run %u:%u:%u in log at %Ld!\n",
|
||||||
run.AllocationGroup(), run.Start(), run.Length(), blockNumber));
|
(int)run.AllocationGroup(), run.Start(), run.Length(), blockNumber));
|
||||||
|
|
||||||
off_t offset = fVolume->ToOffset(run);
|
off_t offset = fVolume->ToOffset(run);
|
||||||
for (int32 i = 0; i < run.Length(); i++) {
|
for (int32 i = 0; i < run.Length(); i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user