use std::cmp::Ordering::*;
match left_bytes.cmp(right_bytes) {
- Less => -1i8,
+ Less => -1i32,
Equal => 0,
Greater => 1,
}
self.write_scalar(
dest,
- Scalar::from_i8(result),
+ Scalar::from_i32(result),
dest_ty,
)?;
}
pub trait ScalarExt {
fn null() -> Self;
- fn from_i8(i: i8) -> Self;
+ fn from_i32(i: i32) -> Self;
fn from_u128(i: u128) -> Self;
fn from_i128(i: i128) -> Self;
fn from_usize(i: u64, ptr_size: Size) -> Self;
Scalar::Bits { bits: 0, defined: 128 }
}
- fn from_i8(i: i8) -> Self {
- Scalar::Bits { bits: i as i128 as u128, defined: 8 }
+ fn from_i32(i: i32) -> Self {
+ Scalar::Bits { bits: i as u32 as u128, defined: 32 }
}
fn from_u128(i: u128) -> Self {