From a55647b9c3953feb866d0824cda02b2cc9fc87bc Mon Sep 17 00:00:00 2001 From: Romero Malaquias Date: Sun, 13 Dec 2015 19:13:12 -0300 Subject: [PATCH] Avoiding conditional directives that break statements --- stb_vorbis.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stb_vorbis.c b/stb_vorbis.c index 98e96fb..4a95e4f 100644 --- a/stb_vorbis.c +++ b/stb_vorbis.c @@ -3127,15 +3127,15 @@ static int do_floor(vorb *f, Mapping *map, int i, int n, float *target, YTYPE *f } else { Floor1 *g = &f->floor_config[floor].floor1; int j,q; - int lx = 0, ly = finalY[0] * g->floor1_multiplier; + int lx = 0, ly = finalY[0] * g->floor1_multiplier, test_final_exists; for (q=1; q < g->values; ++q) { j = g->sorted_order[q]; #ifndef STB_VORBIS_NO_DEFER_FLOOR - if (finalY[j] >= 0) + test_final_exists = finalY[j] >= 0; #else - if (step2_flag[j]) + test_final_exists = step2_flag[j]; #endif - { + if (test_final_exists) { int hy = finalY[j] * g->floor1_multiplier; int hx = g->Xlist[j]; if (lx != hx)