shithub: aubio

Download patch

ref: fbe2cd25c124a629d9fa74c4f1e129e3be992616
parent: c5c0c984a1063e1505c5d0212492e31382d50b90
author: Paul Brossier <piem@piem.org>
date: Fri Sep 11 20:12:15 EDT 2009

src/aubio_priv.h: fix typo in ROUND

--- a/src/aubio_priv.h
+++ b/src/aubio_priv.h
@@ -132,7 +132,7 @@
 #define LOG        logf
 #define FLOOR      floorf
 #define CEIL       ceilf
-#define ROUND(x)   FLOOR(x_.5)
+#define ROUND(x)   FLOOR(x+.5)
 
 /* aliases to complex.h functions */
 #if !defined(HAVE_COMPLEX_H) || defined(WIN32)