From 9f259fdc0a9715827a36806788b0001841be1a83 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 31 Jul 2021 23:18:26 +0100 Subject: [PATCH] Make clippy happy by using .add rather than .offset --- agb/src/sound/mixer/sw_mixer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/sound/mixer/sw_mixer.rs b/agb/src/sound/mixer/sw_mixer.rs index f44026bc..333c4550 100644 --- a/agb/src/sound/mixer/sw_mixer.rs +++ b/agb/src/sound/mixer/sw_mixer.rs @@ -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,