From 0050fb23c30c8b7192b77d3591ea8f5939702836 Mon Sep 17 00:00:00 2001 From: Jeffrey Pfau Date: Wed, 22 Oct 2014 00:47:32 -0700 Subject: [PATCH] Use proper literal sizes for uint64_t --- src/platform/perf-main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/perf-main.c b/src/platform/perf-main.c index 846540098..c2afbd57f 100644 --- a/src/platform/perf-main.c +++ b/src/platform/perf-main.c @@ -76,10 +76,10 @@ int main(int argc, char** argv) { } struct timeval tv; gettimeofday(&tv, 0); - uint64_t start = 1000000 * tv.tv_sec + tv.tv_usec; + uint64_t start = 1000000LL * tv.tv_sec + tv.tv_usec; _GBAPerfRunloop(&context, &frames, perfOpts.csv); gettimeofday(&tv, 0); - uint64_t end = 1000000 * tv.tv_sec + tv.tv_usec; + uint64_t end = 1000000LL * tv.tv_sec + tv.tv_usec; uint64_t duration = end - start; GBAThreadJoin(&context);