avoid overflow in i

This commit is contained in:
Remzi Arpaci-Dusseau 2020-09-06 14:38:40 -05:00
parent c81bb394c3
commit 52dcaeb90d
1 changed files with 1 additions and 1 deletions

View File

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