Fix interp

This commit is contained in:
Minseong Jang
2022-02-23 23:07:07 +09:00
parent d96dc2f5b3
commit 7aaae1b3e6

View File

@@ -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),
}
}