Be honnest about {u/i}128 support

This commit is contained in:
bjorn3 2018-06-26 20:30:47 +02:00
parent aee975e0e2
commit 75430b22e3
1 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ fn cton_type_from_ty(ty: Ty) -> Option<types::Type> {
UintTy::U16 => types::I16,
UintTy::U32 => types::I32,
UintTy::U64 => types::I64,
UintTy::U128 => types::I64X2,
UintTy::U128 => unimplemented!(),
UintTy::Usize => types::I64,
}
}
@ -41,7 +41,7 @@ fn cton_type_from_ty(ty: Ty) -> Option<types::Type> {
IntTy::I16 => types::I16,
IntTy::I32 => types::I32,
IntTy::I64 => types::I64,
IntTy::I128 => types::I64X2,
IntTy::I128 => unimplemented!(),
IntTy::Isize => types::I64,
}
}