64-bit fixes. Gets Debugger fully compiling on x86-64.

This commit is contained in:
Rene Gollent 2012-08-08 19:39:57 -04:00
parent aafb6faf57
commit 74e288401d
3 changed files with 6 additions and 6 deletions

View File

@ -150,8 +150,8 @@ Array<Element>::Remove(int32 index, int32 count)
if (index < 0 || count < 0 || index + count > fSize) {
#if DEBUG
char buffer[128];
snprintf(buffer, sizeof(buffer), "Array::Remove(): index: %ld, "
"count: %ld, size: %ld", index, count, fSize);
snprintf(buffer, sizeof(buffer), "Array::Remove(): index: %" B_PRId32
", count: %" B_PRId32 ", size: %" B_PRId32, index, count, fSize);
debugger(buffer);
#endif
return false;

View File

@ -454,7 +454,7 @@ BRow::BRow(float height)
BRow::~BRow()
{
while (true) {
BField* field = (BField*) fFields.RemoveItem(0L);
BField* field = (BField*) fFields.RemoveItem((int32)0);
if (field == 0)
break;
@ -752,7 +752,7 @@ BColumnListView::BColumnListView(const char* name, uint32 flags,
BColumnListView::~BColumnListView()
{
while (BColumn* column = (BColumn*)fColumns.RemoveItem(0L))
while (BColumn* column = (BColumn*)fColumns.RemoveItem((int32)0))
delete column;
}

View File

@ -406,9 +406,9 @@ BSizeColumn::DrawField(BField* _field, BRect rect, BView* parent)
parent->GetFont(&font);
if (size < kKB_SIZE) {
sprintf(str, "%Ld bytes", size);
sprintf(str, "%" B_PRId64 " bytes", size);
if (font.StringWidth(str) > width)
sprintf(str, "%Ld B", size);
sprintf(str, "%" B_PRId64 " B", size);
} else {
const char* suffix;
float float_value;