all repos — mgba @ 0050fb23c30c8b7192b77d3591ea8f5939702836

mGBA Game Boy Advance Emulator

Use proper literal sizes for uint64_t
Jeffrey Pfau jeffrey@endrift.com
Wed, 22 Oct 2014 00:47:32 -0700
commit

0050fb23c30c8b7192b77d3591ea8f5939702836

parent

f484ef9fa89e214378b01cbfdba09003fc84a8a1

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/perf-main.csrc/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);