summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-02 01:01:15 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-02 01:01:15 +0300
commit48cb86dc463ac1d29b73f3b9a104d0805dfb854a (patch)
treee304efaf7c9efc19872c6a061b8385aa9d33ca97
parentb16adb7bcf4817c7fa42f19be2d7b028109b3672 (diff)
downloadmanaplus-48cb86dc463ac1d29b73f3b9a104d0805dfb854a.tar.gz
manaplus-48cb86dc463ac1d29b73f3b9a104d0805dfb854a.tar.bz2
manaplus-48cb86dc463ac1d29b73f3b9a104d0805dfb854a.tar.xz
manaplus-48cb86dc463ac1d29b73f3b9a104d0805dfb854a.zip
Fix compilation with old compilers again.
Replace PRId64 to casting to uint32_t.
-rw-r--r--src/gui/windows/mailviewwindow.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp
index 5f5f6fe15..583a10117 100644
--- a/src/gui/windows/mailviewwindow.cpp
+++ b/src/gui/windows/mailviewwindow.cpp
@@ -44,15 +44,6 @@
#include "utils/stringutils.h"
#include "resources/inventory/inventory.h"
-
-#ifndef PRId64
-#include <inttypes.h>
-#endif // PRId64
-
-#ifndef PRId64
-#error int types not loaded
-#endif // PRId64
-
#include "debug.h"
MailViewWindow *mailViewWindow = nullptr;
@@ -119,8 +110,9 @@ MailViewWindow::MailViewWindow(MailMessage *const message,
if (message->money != 0)
{
// TRANSLATORS: mail view window label
- mMoneyLabel = new Label(this, strprintf("%s %" PRId64, _("Money:"),
- message->money));
+ mMoneyLabel = new Label(this, strprintf("%s %u",
+ _("Money:"),
+ CAST_U32(message->money)));
placer(0, n++, mMoneyLabel);
}
placer(0, n++, mMessageLabel);