checkpoint
This commit is contained in:
@@ -413,7 +413,10 @@ impl<M: Module> Backend<M> {
|
||||
// negative number for us. Which sets the high bits, which makes Cranelift unhappy.
|
||||
// So first we cast the i8 as u8, to get rid of the whole concept of sign extension,
|
||||
// and *then* we cast to i64.
|
||||
Ok((builder.ins().iconst(types::I8, v as u8 as i64), ConstantType::I8))
|
||||
Ok((
|
||||
builder.ins().iconst(types::I8, v as u8 as i64),
|
||||
ConstantType::I8,
|
||||
))
|
||||
}
|
||||
Value::I16(_, v) => Ok((
|
||||
// see above note for the "... as ... as"
|
||||
|
||||
Reference in New Issue
Block a user