ShorcutsPreferences: fixes 64 bit warnings

This commit is contained in:
Jérôme Duval 2013-05-10 19:59:05 +02:00
parent 4c1efaad9c
commit 0bbc331f6b
3 changed files with 4 additions and 3 deletions

View File

@ -488,7 +488,7 @@ ShortcutsSpec::GetCellText(int whichColumn) const
if (temp == NULL) if (temp == NULL)
temp = ""; temp = "";
} else if (fKey > 0xFF) { } else if (fKey > 0xFF) {
sprintf(fScratch, "#%lx", fKey); sprintf(fScratch, "#%" B_PRIx32, fKey);
return fScratch; return fScratch;
} }
break; break;

View File

@ -569,7 +569,8 @@ ShortcutsWindow::MessageReceived(BMessage* msg)
if (fLastOpenWasAppend == false) { if (fLastOpenWasAppend == false) {
// Clear the menu... // Clear the menu...
while (ShortcutsSpec* item while (ShortcutsSpec* item
= ((ShortcutsSpec*)fColumnListView->RemoveItem(0L))) { = ((ShortcutsSpec*)
fColumnListView->RemoveItem((int32)0))) {
delete item; delete item;
} }
} }

View File

@ -1255,7 +1255,7 @@ bool ColumnListView::RemoveItems(int32 fullListIndex, int32 count)
CLVListItem* TheItem; CLVListItem* TheItem;
if(fHierarchical) if(fHierarchical)
{ {
uint32 LastSuperItemLevel = ULONG_MAX; uint32 LastSuperItemLevel = UINT32_MAX;
int32 Counter; int32 Counter;
int32 DisplayItemsToRemove = 0; int32 DisplayItemsToRemove = 0;
int32 FirstDisplayItemToRemove = -1; int32 FirstDisplayItemToRemove = -1;