aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-metro.lv2/metro.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-metro.lv2/metro.c
parent7ee4fa3fe15a2057541bf35534a2f94f77c19d5d (diff)
downloadlv2-f723513288fe2cd3a5b59a94b470bc43e456e7a3.tar.xz
Make potentially lossy type conversions explicit
Diffstat (limited to 'plugins/eg-metro.lv2/metro.c')
-rw-r--r--plugins/eg-metro.lv2/metro.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/eg-metro.lv2/metro.c b/plugins/eg-metro.lv2/metro.c
index 264f2c7..354934b 100644
--- a/plugins/eg-metro.lv2/metro.c
+++ b/plugins/eg-metro.lv2/metro.c
@@ -313,7 +313,7 @@ run(LV2_Handle instance, uint32_t sample_count)
!lv2_atom_sequence_is_end(&in->body, in->atom.size, ev);
ev = lv2_atom_sequence_next(ev)) {
// Play the click for the time slice from last_t until now
- play(self, last_t, ev->time.frames);
+ play(self, last_t, (uint32_t)ev->time.frames);
// Check if this event is an Object
// (or deprecated Blank to tolerate old hosts)
@@ -327,7 +327,7 @@ run(LV2_Handle instance, uint32_t sample_count)
}
// Update time for next iteration and move to next event
- last_t = ev->time.frames;
+ last_t = (uint32_t)ev->time.frames;
}
// Play for remainder of cycle