From 0e646e97924fc4b0691009f376ba371605484403 Mon Sep 17 00:00:00 2001 From: "Penn, John M 047828115" Date: Thu, 1 Jul 2021 21:18:37 -0500 Subject: [PATCH] Make ball_ensemble_collision.c compatible with ancient Centos 7 C compiler. --- trick_sims/Ball/models/ball/L3/src/ball_ensemble_collision.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trick_sims/Ball/models/ball/L3/src/ball_ensemble_collision.c b/trick_sims/Ball/models/ball/L3/src/ball_ensemble_collision.c index e61fc0a4..84412f4e 100644 --- a/trick_sims/Ball/models/ball/L3/src/ball_ensemble_collision.c +++ b/trick_sims/Ball/models/ball/L3/src/ball_ensemble_collision.c @@ -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] ) ;