aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2
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-sampler.lv2
parent7ee4fa3fe15a2057541bf35534a2f94f77c19d5d (diff)
downloadlv2-f723513288fe2cd3a5b59a94b470bc43e456e7a3.tar.xz
Make potentially lossy type conversions explicit
Diffstat (limited to 'plugins/eg-sampler.lv2')
-rw-r--r--plugins/eg-sampler.lv2/peaks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/eg-sampler.lv2/peaks.h b/plugins/eg-sampler.lv2/peaks.h
index ca5328d..7a5f3e3 100644
--- a/plugins/eg-sampler.lv2/peaks.h
+++ b/plugins/eg-sampler.lv2/peaks.h
@@ -153,11 +153,11 @@ peaks_sender_send(PeaksSender* sender,
// eg:offset = OFFSET
lv2_atom_forge_key(forge, uris->peaks_offset);
- lv2_atom_forge_int(forge, sender->current_offset);
+ lv2_atom_forge_int(forge, (int32_t)sender->current_offset);
// eg:total = TOTAL
lv2_atom_forge_key(forge, uris->peaks_total);
- lv2_atom_forge_int(forge, sender->n_peaks);
+ lv2_atom_forge_int(forge, (int32_t)sender->n_peaks);
// eg:magnitudes = Vector<Float>(PEAK, PEAK, ...)
lv2_atom_forge_key(forge, uris->peaks_magnitudes);