Make ball_ensemble_collision.c compatible with ancient Centos 7 C compiler.

This commit is contained in:
Penn, John M 047828115 2021-07-01 21:18:37 -05:00
parent 35a2c91c86
commit 0e646e9792

View File

@ -19,7 +19,8 @@ double ball_ensemble_collision( BSTATE * states[2] ) {
double event_tgo;
event_tgo = BIG_TGO;
for (int i=0 ; i < 2 ; i++) {
int i;
for (i=0 ; i<2 ; i++) {
tgo = ball_ceiling( states[i]);
if (tgo < event_tgo) event_tgo = tgo;
tgo = ball_floor( states[i] ) ;