summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-12-20 00:38:32 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-12-20 00:38:32 +0000
commit62f1e9f6653037cf787d03af0370a7c822b41b30 (patch)
tree2427283b88a0ab96b4f976b00d1e1b775eef910f
parent4fc947676f34bb8157afaf0038c042ebcca16b1c (diff)
downloadlibnsutils-release/0.0.1.tar.gz
libnsutils-release/0.0.1.tar.bz2
Fix build on m68k amigaosrelease/0.0.1
-rw-r--r--src/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/time.c b/src/time.c
index 94139c3..1f79857 100644
--- a/src/time.c
+++ b/src/time.c
@@ -63,7 +63,7 @@ nsuerror nsu_getmonotonic_ms(uint64_t *current_out)
#elif defined(__amiga)
struct EClockVal eclockval;
int freq = 0;
- uint64 eclock;
+ uint64_t eclock;
/* NB: The calling task must already have opened timer.device
* and obtained the interface.
@@ -74,7 +74,7 @@ nsuerror nsu_getmonotonic_ms(uint64_t *current_out)
#endif
freq = ReadEClock(&eclockval) / 1000;
- eclock = ((uint64)eclockval.ev_hi << 32) | (eclockval.ev_lo);
+ eclock = ((uint64_t)eclockval.ev_hi << 32) | (eclockval.ev_lo);
current = eclock / freq;
#else
#warning "Using dodgy gettimeofday() fallback"