Use proper literal sizes for uint64_t
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 00:47:32 -0700
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/platform/perf-main.c
→
src/platform/perf-main.c
@@ -76,10 +76,10 @@ frames = perfOpts.duration * 60;
} 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);