Skip to content

Commit 5326e72

Browse files
committed
Fix cast ykjit#2
1 parent 2858f17 commit 5326e72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ykcompile/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ macro_rules! binop_md {
149149
Location::Mem(..) => todo!(),
150150
Location::Const { val, .. } => {
151151
let val = val.i64_cast();
152-
if val as u32 > u32::MAX {
152+
if val > i64::from(u32::MAX) {
153153
// FIXME Work around x86_64 encoding limitations (no imm64 operands).
154154
todo!();
155155
}

0 commit comments

Comments
 (0)