aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/modulator.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
committerChris Robinson <[email protected]>2023-12-17 22:36:44 -0800
commit708a90ef8ef7ee00991556298073c50dfa6e72a1 (patch)
tree5d72e46977dc241febfcf6ad4ab2ffbe2fadf2c3 /alc/effects/modulator.cpp
parentbc83c874ff15b29fdab9b6c0bf40b268345b3026 (diff)
Fix some implicit conversions
Diffstat (limited to 'alc/effects/modulator.cpp')
-rw-r--r--alc/effects/modulator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/effects/modulator.cpp b/alc/effects/modulator.cpp
index 29c225e3..8144061a 100644
--- a/alc/effects/modulator.cpp
+++ b/alc/effects/modulator.cpp
@@ -52,7 +52,7 @@ inline float Saw(uint index, float scale)
{ return static_cast<float>(index)*scale - 1.0f; }
inline float Square(uint index, float scale)
-{ return (static_cast<float>(index)*scale < 0.5f)*2.0f - 1.0f; }
+{ return float(static_cast<float>(index)*scale < 0.5f)*2.0f - 1.0f; }
inline float One(uint, float)
{ return 1.0f; }