Skip to content

Commit 183745e

Browse files
committed
lgj-abi: map the new mask-risc ExecError variants to existing status codes
Foreign/ForeignLane out-of-range and kind, and TerminalNeedsOut, land on the codes their Planes-side twins already use. No new codes, no ABI bump. Depends on lance-graph #1256 (the variants live there). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GXUahz73MZxtxWcfpHp9dG
1 parent e1f909f commit 183745e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎native/lgj-abi/src/exports.rs‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1734,7 +1734,11 @@ fn exec_error_to_status(e: ExecError) -> i32 {
17341734
ExecError::LaneOutOfRange(_) => LGJ_ERR_INVALID_LANE,
17351735
ExecError::LaneKind { .. } => LGJ_ERR_LANE_KIND_MISMATCH,
17361736
ExecError::LenMismatch { .. } => LGJ_ERR_MASK_LENGTH_MISMATCH,
1737-
ExecError::PlaneOutOfRange(_) | ExecError::PlaneTail(_) => LGJ_ERR_INVALID_HANDLE,
1737+
ExecError::PlaneOutOfRange(_)
1738+
| ExecError::PlaneTail(_)
1739+
| ExecError::ForeignOutOfRange(_) => LGJ_ERR_INVALID_HANDLE,
1740+
ExecError::ForeignLaneOutOfRange(_) => LGJ_ERR_INVALID_LANE,
1741+
ExecError::ForeignLaneKind { .. } => LGJ_ERR_LANE_KIND_MISMATCH,
17381742
ExecError::SumRowBound { .. } => LGJ_ERR_SUM_OVERFLOW,
17391743
ExecError::ScratchTooSmall { .. }
17401744
| ExecError::ScratchBufferTooSmall { .. }
@@ -1743,6 +1747,7 @@ fn exec_error_to_status(e: ExecError) -> i32 {
17431747
| ExecError::ScratchReadBeforeWrite { .. }
17441748
| ExecError::ScratchWords { .. }
17451749
| ExecError::BlendNeedsOut
1750+
| ExecError::TerminalNeedsOut { .. }
17461751
| ExecError::GateAliasesDst { .. }
17471752
| ExecError::RangeOutOfBounds { .. } => LGJ_ERR_ALLOCATION_FAILED,
17481753
}

0 commit comments

Comments
 (0)