Make clippy happy by using .add rather than .offset

This commit is contained in:
Gwilym Kuiper 2021-07-31 23:18:26 +01:00
parent f1b6b1035b
commit 9f259fdc0a

View file

@ -146,7 +146,7 @@ impl MixerBuffer {
unsafe {
agb_rs__mixer_add(
channel.data.as_ptr().offset(channel.pos.floor() as isize),
channel.data.as_ptr().add(channel.pos.floor()),
buffer.as_mut_ptr(),
channel.playback_speed,
left_amount,