Skip to content

Commit f42a6c2

Browse files
mivertowskiclaude
andcommitted
Fix clippy int_plus_one warning in ringkernel-wavesim simd.rs
Change `x + 8 <= width - 1` to equivalent `x + 8 < width`. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bd8ffdf commit f42a6c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • crates/ringkernel-wavesim/src/simulation

crates/ringkernel-wavesim/src/simulation/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mod tests {
2828
let two = f32x8::splat(2.0);
2929

3030
let mut x = 1;
31-
while x + 8 <= width - 1 {
31+
while x + 8 < width {
3232
let idx = row_start + x;
3333

3434
let p_curr = f32x8::from_slice(&pressure[idx..idx + 8]);

0 commit comments

Comments
 (0)