fix(sp5): Task A1 — MappedF32Buffer.len is a public field, not a method

Test sp5_producer_unit_tests.rs:212 called `scratch_buf.len()` but `len`
is declared as `pub len: usize` on MappedF32Buffer (mapped_pinned.rs:210),
not a method. `cargo test --no-run` failed with E0599; library + cubin
build was unaffected.

One-character fix: `scratch_buf.len()` → `scratch_buf.len`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-05-01 20:55:18 +02:00
parent 0b0f3b21e1
commit db0b603127

View File

@@ -209,7 +209,7 @@ fn sp5_pearl_1_atom_headroom_bootstrap_and_controller_step() {
// Layout: branch b at scratch[71 + b*4 + {0,1,2,3}] = {mean, max_abs_dev, var, entropy}
let scratch_buf = unsafe { MappedF32Buffer::new(SCRATCH_ATOM_OUT + 16) }
.expect("alloc scratch_buf");
let scratch_data: Vec<f32> = (0..scratch_buf.len())
let scratch_data: Vec<f32> = (0..scratch_buf.len)
.map(|i| {
let rel = i as i32 - SCRATCH_Q_STATS as i32;
if rel >= 0 && rel < 16 {