64-bit fixes. Gets Debugger fully compiling on x86-64.
This commit is contained in:
@@ -150,8 +150,8 @@ Array<Element>::Remove(int32 index, int32 count)
|
|||||||
if (index < 0 || count < 0 || index + count > fSize) {
|
if (index < 0 || count < 0 || index + count > fSize) {
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
char buffer[128];
|
char buffer[128];
|
||||||
snprintf(buffer, sizeof(buffer), "Array::Remove(): index: %ld, "
|
snprintf(buffer, sizeof(buffer), "Array::Remove(): index: %" B_PRId32
|
||||||
"count: %ld, size: %ld", index, count, fSize);
|
", count: %" B_PRId32 ", size: %" B_PRId32, index, count, fSize);
|
||||||
debugger(buffer);
|
debugger(buffer);
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ BRow::BRow(float height)
|
|||||||
BRow::~BRow()
|
BRow::~BRow()
|
||||||
{
|
{
|
||||||
while (true) {
|
while (true) {
|
||||||
BField* field = (BField*) fFields.RemoveItem(0L);
|
BField* field = (BField*) fFields.RemoveItem((int32)0);
|
||||||
if (field == 0)
|
if (field == 0)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -752,7 +752,7 @@ BColumnListView::BColumnListView(const char* name, uint32 flags,
|
|||||||
|
|
||||||
BColumnListView::~BColumnListView()
|
BColumnListView::~BColumnListView()
|
||||||
{
|
{
|
||||||
while (BColumn* column = (BColumn*)fColumns.RemoveItem(0L))
|
while (BColumn* column = (BColumn*)fColumns.RemoveItem((int32)0))
|
||||||
delete column;
|
delete column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -406,9 +406,9 @@ BSizeColumn::DrawField(BField* _field, BRect rect, BView* parent)
|
|||||||
|
|
||||||
parent->GetFont(&font);
|
parent->GetFont(&font);
|
||||||
if (size < kKB_SIZE) {
|
if (size < kKB_SIZE) {
|
||||||
sprintf(str, "%Ld bytes", size);
|
sprintf(str, "%" B_PRId64 " bytes", size);
|
||||||
if (font.StringWidth(str) > width)
|
if (font.StringWidth(str) > width)
|
||||||
sprintf(str, "%Ld B", size);
|
sprintf(str, "%" B_PRId64 " B", size);
|
||||||
} else {
|
} else {
|
||||||
const char* suffix;
|
const char* suffix;
|
||||||
float float_value;
|
float float_value;
|
||||||
|
|||||||
Reference in New Issue
Block a user