summaryrefslogtreecommitdiffstats
path: root/src/util/math.h
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-11-18 00:11:37 -0500
committerRJ Ryan <rryan@mixxx.org>2014-11-18 01:29:09 -0500
commita74c65d6469a2f1ce0d1927ffbd73be90bf754c5 (patch)
tree4381e657348dd5bba44d2e2b40c0635ed39b7f3c /src/util/math.h
parentc21f0c6559e5c19ed7a9acd301e2100823a43e00 (diff)
Code fascism.
* Fix compiler warnings in non-3rd-party code. * Add some missing const-references. * Eliminate cases of "if(" "( ... )" and "for(".
Diffstat (limited to 'src/util/math.h')
-rw-r--r--src/util/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/math.h b/src/util/math.h
index d7d8627021..ecdce81ad5 100644
--- a/src/util/math.h
+++ b/src/util/math.h
@@ -69,7 +69,7 @@ inline int roundUpToPowerOf2(int v) {
// MSVS 2013 (_MSC_VER 1800) introduced C99 support.
#if defined(__WINDOWS__) && _MSC_VER < 1800
-inline int round(double x){
+inline int round(double x) {
return x < 0.0 ? ceil(x - 0.5) : floor(x + 0.5);
}
#endif