Skip to content

Commit

Permalink
avoid overflow in i
Browse files Browse the repository at this point in the history
  • Loading branch information
remzi-arpacidusseau committed Sep 6, 2020
1 parent c81bb39 commit 52dcaeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-beyondphys/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) {

// now the main loop: each time through, touch each integer
// (and increment its value by 1).
int i = 0;
long long int i = 0;
double time_since_last_print = 2.0;
double t = Time_GetSeconds();
int loop_count = 0;
Expand Down

0 comments on commit 52dcaeb

Please sign in to comment.