Forbid incompatible pointer conversion

This commit is contained in:
Minseong Jang
2022-04-04 20:26:54 +09:00
parent 5f5fef54bd
commit 3a36e47985
3 changed files with 2 additions and 3 deletions

View File

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