mirror of
https://github.com/kmc7468/cs420.git
synced 2026-11-04 08:10:29 +09:00
Fix interp
This commit is contained in:
1 parent
d96dc2f5b3
commit
7aaae1b3e6
1 file changed
+3
@@ -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