fix the segfault

This commit is contained in:
2026-10-14 21:55:08 +01:00
parent ec97a06a48
commit e98dba8c45
22 changed files with 178 additions and 173 deletions
@@ -31,21 +31,21 @@ impl SphereTapeBuilder {
let pos = tape.push_instruction(
SSAOpcodeSized {
opcode: SSAOpcode::SSAPosition,
size: 1,
size: 1,
},
vec![],
);
let sphere = tape.push_instruction(
SSAOpcodeSized {
opcode: SSAOpcode::SSASDFSphere,
size: 1,
size: 1,
},
vec![pos[0], pos[1], pos[2], SSAInput::Constant(radius)],
);
tape.push_instruction(
SSAOpcodeSized {
opcode: SSAOpcode::SSAReturn,
size: 1,
size: 1,
},
sphere,
);