From c389f0348b1910820806ff5be39f76395f9318a8 Mon Sep 17 00:00:00 2001 From: rbdannenberg Date: Mon, 27 Sep 2010 17:55:51 +0000 Subject: [PATCH] Previous bug fix to add.c introduced a declaration after statements, rejected by some compilers. This new add.c should compile everywhere. --- lib-src/libnyquist/nyquist/nyqsrc/add.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib-src/libnyquist/nyquist/nyqsrc/add.c b/lib-src/libnyquist/nyquist/nyqsrc/add.c index 1a4e284d5..267be4862 100644 --- a/lib-src/libnyquist/nyquist/nyqsrc/add.c +++ b/lib-src/libnyquist/nyquist/nyqsrc/add.c @@ -565,10 +565,12 @@ D nyquist_printf("add_s_nn_fetch: special return, susp %p\n", susp); /* check if we've seen the logical stop from s2. If so then log_stop_cnt is max of s1 and s2 stop times */ (susp->logical_stop_bits & 2)) { + /* (some compilers don't like statements before declarations) D nyquist_printf("add_s2_nn_fetch: susp->susp.log_stop_cnt %d\n", susp->susp.log_stop_cnt); D nyquist_printf("add_s2_nn_fetch: susp->susp.current %d\n", susp->susp.current); + */ int to_stop = susp->susp.log_stop_cnt - susp->susp.current; // to_stop can be less than zero if we've been adding in sounds with // t0 less than the time when the sound is added. E.g. if the user