Mercurial > hg > svcore
diff system/System.cpp @ 1039:b14064bd1f97 cxx11
This code now compiles. Main problem: sample rate types
author | Chris Cannam |
---|---|
date | Tue, 03 Mar 2015 17:09:19 +0000 |
parents | cc27f35aa75c |
children | 9cdb4206aceb |
line wrap: on
line diff
--- a/system/System.cpp Tue Mar 03 15:18:24 2015 +0000 +++ b/system/System.cpp Tue Mar 03 17:09:19 2015 +0000 @@ -323,5 +323,5 @@ float modf(float x, float y) { return x - (y * floorf(x / y)); } double princarg(double a) { return mod(a + M_PI, -2 * M_PI) + M_PI; } -float princargf(float a) { return modf(a + M_PI, -2 * M_PI) + M_PI; } +float princargf(float a) { return float(princarg(a)); }