fix the inference on itf
This commit is contained in:
parent
12be64965f
commit
b1b6d9eba1
|
@ -3307,7 +3307,7 @@ impl<'a> Codegen<'a> {
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
Expr::Directive { name: "itf", args: [expr], .. } => {
|
Expr::Directive { name: "itf", args: [expr], .. } => {
|
||||||
let mut val = self.expr(expr)?;
|
let mut val = self.expr_ctx(expr, Ctx::default().with_ty(ty::Id::INT))?;
|
||||||
|
|
||||||
let (ret_ty, expected) = match val.ty.simple_size().unwrap() {
|
let (ret_ty, expected) = match val.ty.simple_size().unwrap() {
|
||||||
8 => (ty::Id::F64, ty::Id::INT),
|
8 => (ty::Id::F64, ty::Id::INT),
|
||||||
|
|
Loading…
Reference in a new issue