summaryrefslogtreecommitdiff
path: root/drumgizmo/output
diff options
context:
space:
mode:
Diffstat (limited to 'drumgizmo/output')
-rw-r--r--drumgizmo/output/wavfile.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/drumgizmo/output/wavfile.cc b/drumgizmo/output/wavfile.cc
index e1cb16e..6880228 100644
--- a/drumgizmo/output/wavfile.cc
+++ b/drumgizmo/output/wavfile.cc
@@ -82,7 +82,7 @@ void WavfileOutputEngine::pre(size_t nsamples) {
}
void WavfileOutputEngine::run(int ch, sample_t* samples, size_t nsamples) {
- if (ch >= channels.size()) {
+ if (static_cast<unsigned int>(ch) >= channels.size()) {
printf("Invalid channel %d (%lu channels available)", ch, channels.size());
return;
}