summaryrefslogtreecommitdiff
path: root/sim/host.hh
diff options
context:
space:
mode:
Diffstat (limited to 'sim/host.hh')
-rw-r--r--sim/host.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/host.hh b/sim/host.hh
index 489c4e042..9114cc4b6 100644
--- a/sim/host.hh
+++ b/sim/host.hh
@@ -38,9 +38,9 @@
#include <inttypes.h>
/** uint64_t constant */
-#define ULL(N) N##ULL
+#define ULL(N) ((uint64_t)N##ULL)
/** int64_t constant */
-#define LL(N) N##LL
+#define LL(N) (((int64_t)N##LL)
/** Statistics counter type. Not much excuse for not using a 64-bit
* integer here, but if you're desperate and only run short