diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 22:27:11 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:05:21 +0200 |
commit | a131d0850c731b6b564e493db7148267ceea7e8b (patch) | |
tree | c9ea965e38647074295d0a2cc6c2973b8597adb6 | |
parent | 9166ce3e799ec8f76d722d3334892429e10606f5 (diff) |
filter/accela: get rid of pointless `progn'
-rw-r--r-- | filter-accela/ftnoir_filter_accela.cpp | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/filter-accela/ftnoir_filter_accela.cpp b/filter-accela/ftnoir_filter_accela.cpp index 15e2edfb..9484fafe 100644 --- a/filter-accela/ftnoir_filter_accela.cpp +++ b/filter-accela/ftnoir_filter_accela.cpp @@ -41,21 +41,19 @@ static void do_deltas(const double* deltas, double* output, F&& fun) norm[k] = c; } - progn( - double n = 0; - for (unsigned k = 0; k < N; k++) - n += norm[k]; + double n = 0; + for (unsigned k = 0; k < N; k++) + n += norm[k]; - if (n > 1e-6) - { - const double ret = 1./n; - for (unsigned k = 0; k < N; k++) - norm[k] *= ret; - } - else - for (unsigned k = 0; k < N; k++) - norm[k] = 0; - ); + if (n > 1e-6) + { + const double ret = 1./n; + for (unsigned k = 0; k < N; k++) + norm[k] *= ret; + } + else + for (unsigned k = 0; k < N; k++) + norm[k] = 0; for (unsigned k = 0; k < N; k++) { |