intcast has the logic for dealing with bools, so use that
(&mut self, val: Self::Value, dest_ty: Self::Type)
| 1398 | |
| 1399 | // intcast has the logic for dealing with bools, so use that |
| 1400 | fn trunc(&mut self, val: Self::Value, dest_ty: Self::Type) -> Self::Value { |
| 1401 | self.intcast(val, dest_ty, false) |
| 1402 | } |
| 1403 | fn sext(&mut self, val: Self::Value, dest_ty: Self::Type) -> Self::Value { |
| 1404 | self.intcast(val, dest_ty, true) |
| 1405 | } |