64-bit fixes for WebPositive.

This commit is contained in:
Rene Gollent
2012-12-22 16:24:16 -05:00
parent 944235ddd4
commit 523a87a5d2
3 changed files with 4 additions and 4 deletions
@@ -776,7 +776,7 @@ DownloadProgressView::_UpdateStatusText()
// TODO: Localization of time string...
if (now < finishTime - secondsPerDay) {
// process is going to take more than a day!
sprintf(timeText, "%0*d:%0*d %0*d/%0*d/%ld",
sprintf(timeText, "%0*d:%0*d %0*d/%0*d/%" B_PRId32,
2, time->tm_hour, 2, time->tm_min,
2, time->tm_mon + 1, 2, time->tm_mday, year);
} else {
+1 -1
View File
@@ -499,7 +499,7 @@ SettingsWindow::_BuildSizesMenu(BMenu* menu, uint32 messageWhat)
continue;
char label[32];
snprintf(label, sizeof(label), "%ld", size);
snprintf(label, sizeof(label), "%" B_PRId32, size);
BMessage* message = new BMessage(messageWhat);
message->AddInt32("size", size);
@@ -453,7 +453,7 @@ void
FontSelectionView::_SelectCurrentSize(bool select)
{
char label[16];
snprintf(label, sizeof(label), "%ld", (int32)fCurrentFont.Size());
snprintf(label, sizeof(label), "%" B_PRId32, (int32)fCurrentFont.Size());
BMenuItem* item = fSizesMenu->FindItem(label);
if (item != NULL)
@@ -480,7 +480,7 @@ FontSelectionView::_BuildSizesMenu()
continue;
char label[32];
snprintf(label, sizeof(label), "%ld", size);
snprintf(label, sizeof(label), "%" B_PRId32, size);
BMessage* message = new BMessage(kMsgSetSize);
message->AddInt32("size", size);