make memcmp return a value of c_int_width instead of i32
This commit is contained in:
parent
81083b906f
commit
88c058b614
@ -91,6 +91,10 @@ impl<'gcc, 'tcx> ConstMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
|
||||
self.const_uint(self.type_i1(), val as u64)
|
||||
}
|
||||
|
||||
fn const_i16(&self, i: i16) -> RValue<'gcc> {
|
||||
self.const_int(self.type_i16(), i as i64)
|
||||
}
|
||||
|
||||
fn const_i32(&self, i: i32) -> RValue<'gcc> {
|
||||
self.const_int(self.type_i32(), i as i64)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user