Use proper literal sizes for uint64_t

This commit is contained in:
Jeffrey Pfau 2014-10-22 00:47:32 -07:00
parent f484ef9fa8
commit 0050fb23c3
1 changed files with 2 additions and 2 deletions

View File

@ -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);