aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-midigate.lv2/midigate.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-06-15 13:01:21 -0400
committerDavid Robillard <d@drobilla.net>2022-07-17 17:08:36 -0400
commitf723513288fe2cd3a5b59a94b470bc43e456e7a3 (patch)
treee3637f463714364932fc684dbb76a18550da28d6 /plugins/eg-midigate.lv2/midigate.c
parent7ee4fa3fe15a2057541bf35534a2f94f77c19d5d (diff)
downloadlv2-f723513288fe2cd3a5b59a94b470bc43e456e7a3.tar.xz
Make potentially lossy type conversions explicit
Diffstat (limited to 'plugins/eg-midigate.lv2/midigate.c')
-rw-r--r--plugins/eg-midigate.lv2/midigate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/eg-midigate.lv2/midigate.c b/plugins/eg-midigate.lv2/midigate.c
index 5379440..7b77079 100644
--- a/plugins/eg-midigate.lv2/midigate.c
+++ b/plugins/eg-midigate.lv2/midigate.c
@@ -186,7 +186,7 @@ run(LV2_Handle instance, uint32_t sample_count)
}
}
- write_output(self, offset, ev->time.frames - offset);
+ write_output(self, offset, (uint32_t)(ev->time.frames - offset));
offset = (uint32_t)ev->time.frames;
}