64-bit fixes for WebPositive.
This commit is contained in:
@@ -776,7 +776,7 @@ DownloadProgressView::_UpdateStatusText()
|
|||||||
// TODO: Localization of time string...
|
// TODO: Localization of time string...
|
||||||
if (now < finishTime - secondsPerDay) {
|
if (now < finishTime - secondsPerDay) {
|
||||||
// process is going to take more than a day!
|
// 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_hour, 2, time->tm_min,
|
||||||
2, time->tm_mon + 1, 2, time->tm_mday, year);
|
2, time->tm_mon + 1, 2, time->tm_mday, year);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -499,7 +499,7 @@ SettingsWindow::_BuildSizesMenu(BMenu* menu, uint32 messageWhat)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
char label[32];
|
char label[32];
|
||||||
snprintf(label, sizeof(label), "%ld", size);
|
snprintf(label, sizeof(label), "%" B_PRId32, size);
|
||||||
|
|
||||||
BMessage* message = new BMessage(messageWhat);
|
BMessage* message = new BMessage(messageWhat);
|
||||||
message->AddInt32("size", size);
|
message->AddInt32("size", size);
|
||||||
|
|||||||
@@ -453,7 +453,7 @@ void
|
|||||||
FontSelectionView::_SelectCurrentSize(bool select)
|
FontSelectionView::_SelectCurrentSize(bool select)
|
||||||
{
|
{
|
||||||
char label[16];
|
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);
|
BMenuItem* item = fSizesMenu->FindItem(label);
|
||||||
if (item != NULL)
|
if (item != NULL)
|
||||||
@@ -480,7 +480,7 @@ FontSelectionView::_BuildSizesMenu()
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
char label[32];
|
char label[32];
|
||||||
snprintf(label, sizeof(label), "%ld", size);
|
snprintf(label, sizeof(label), "%" B_PRId32, size);
|
||||||
|
|
||||||
BMessage* message = new BMessage(kMsgSetSize);
|
BMessage* message = new BMessage(kMsgSetSize);
|
||||||
message->AddInt32("size", size);
|
message->AddInt32("size", size);
|
||||||
|
|||||||
Reference in New Issue
Block a user