mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Fix interp
This commit is contained in:
@@ -794,6 +794,9 @@ mod calculator {
|
||||
(Value::Float { value, .. }, Dtype::Float { width, .. }) => {
|
||||
Ok(Value::float(value.into_inner(), width))
|
||||
}
|
||||
(Value::Pointer { bid, offset, .. }, Dtype::Pointer { inner, .. }) => {
|
||||
Ok(Value::pointer(bid, offset, inner.deref().clone()))
|
||||
}
|
||||
(value, dtype) => todo!("calculate_typecast ({:?}) {:?}", value, dtype),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user