diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-31 23:30:35 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-01 08:13:12 +0200 |
commit | f9467ec1ea6c0dac2ea513b7dfe58d0349788e02 (patch) | |
tree | 05421200fdd55c97b3b60895597f487d8ac51afa /servers/audio/effects/audio_effect_chorus.cpp | |
parent | 51ae90d7893fd392dd8938cc41c52081e5065794 (diff) | |
download | redot-engine-f9467ec1ea6c0dac2ea513b7dfe58d0349788e02.tar.gz |
Fix signed and unsigned comparisons
The first in my quest to make Godot 3.x compile with -Werror on GCC7
Diffstat (limited to 'servers/audio/effects/audio_effect_chorus.cpp')
-rw-r--r-- | servers/audio/effects/audio_effect_chorus.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_chorus.cpp b/servers/audio/effects/audio_effect_chorus.cpp index 4075bc3e63..76dd585ffa 100644 --- a/servers/audio/effects/audio_effect_chorus.cpp +++ b/servers/audio/effects/audio_effect_chorus.cpp @@ -78,7 +78,7 @@ void AudioEffectChorusInstance::_process_chunk(const AudioFrame *p_src_frames, A uint64_t increment = llrint(cycles_to_mix / (double)p_frame_count * (double)(1 << AudioEffectChorus::CYCLES_FRAC)); //check the LFO doesn't read ahead of the write pos - if ((((int)max_depth_frames) + 10) > delay_frames) { //10 as some threshold to avoid precision stuff + if ((((unsigned int)max_depth_frames) + 10) > delay_frames) { //10 as some threshold to avoid precision stuff delay_frames += (int)max_depth_frames - delay_frames; delay_frames += 10; //threshold to avoid precision stuff } |