diff options
author | Chris Robinson <[email protected]> | 2019-09-14 19:42:54 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-14 19:42:54 -0700 |
commit | 4b8f78a8d633e3f39e2b708184c051465fcfef7d (patch) | |
tree | 0f90c50f3630c5dbb6e188116cd58c8ca4181186 /examples | |
parent | e82c43fb38f13ee3efdda2b7a1395b8182fceb1c (diff) |
Fix a few more GCC warnings
Diffstat (limited to 'examples')
-rw-r--r-- | examples/almultireverb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/almultireverb.c b/examples/almultireverb.c index b967a050..4e3e188f 100644 --- a/examples/almultireverb.c +++ b/examples/almultireverb.c @@ -653,12 +653,12 @@ int main(int argc, char **argv) * Convert the difference to seconds. */ curtime = altime_get(); - timediff = (ALfloat)(curtime - basetime) / 1000.0f; + timediff = (float)(curtime - basetime) / 1000.0f; /* Avoid negative time deltas, in case of non-monotonic clocks. */ if(timediff < 0.0f) timediff = 0.0f; - else while(timediff >= 4.0f*((loops&1)+1)) + else while(timediff >= 4.0f*(float)((loops&1)+1)) { /* For this example, each transition occurs over 4 seconds, and * there's 2 transitions per cycle. |