mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Forbid incompatible pointer conversion
This commit is contained in:
@@ -811,9 +811,6 @@ 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