summaryrefslogtreecommitdiff
path: root/libs/plugins/reasonablesynth.lv2
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-10-23 05:11:10 +0200
committerRobin Gareus <robin@gareus.org>2014-10-23 05:31:40 +0200
commit730e09ce65860d951d0edd9b5471278125915f0a (patch)
tree1f56e3208541994dc5e0aff55e789b233676b50e /libs/plugins/reasonablesynth.lv2
parentca48fffd72df21d7298bf00d1e73b1381d0ec0e3 (diff)
another round of compiler warning fixes
Diffstat (limited to 'libs/plugins/reasonablesynth.lv2')
-rw-r--r--libs/plugins/reasonablesynth.lv2/lv2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/plugins/reasonablesynth.lv2/lv2.c b/libs/plugins/reasonablesynth.lv2/lv2.c
index 87f930b3c4..4698cb9131 100644
--- a/libs/plugins/reasonablesynth.lv2/lv2.c
+++ b/libs/plugins/reasonablesynth.lv2/lv2.c
@@ -147,7 +147,7 @@ run(LV2_Handle handle, uint32_t n_samples)
/* Process incoming MIDI events */
if (self->midiin) {
- LV2_Atom_Event const* ev = (LV2_Atom_Event const*)((&(self->midiin)->body) + 1); // lv2_atom_sequence_begin
+ LV2_Atom_Event const* ev = (LV2_Atom_Event const*)((uintptr_t)((&(self->midiin)->body) + 1)); // lv2_atom_sequence_begin
while( // !lv2_atom_sequence_is_end
(const uint8_t*)ev < ((const uint8_t*) &(self->midiin)->body + (self->midiin)->atom.size)
)
@@ -166,7 +166,7 @@ run(LV2_Handle handle, uint32_t n_samples)
}
}
ev = (LV2_Atom_Event const*) // lv2_atom_sequence_next()
- ((const uint8_t*)ev + sizeof(LV2_Atom_Event) + ((ev->body.size + 7) & ~7));
+ ((uintptr_t)((const uint8_t*)ev + sizeof(LV2_Atom_Event) + ((ev->body.size + 7) & ~7)));
}
}