From: David Morrison Date: Thu, 11 Nov 2021 04:14:23 +0000 (-0800) Subject: make memcmp return a value of c_int_width instead of i32 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=88c058b6147b9db15b03035baaab62c8e4d28ee4;p=rust.git make memcmp return a value of c_int_width instead of i32 --- diff --git a/src/common.rs b/src/common.rs index 61709dd92de..19127c7612d 100644 --- a/src/common.rs +++ b/src/common.rs @@ -91,6 +91,10 @@ fn const_bool(&self, val: bool) -> RValue<'gcc> { 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) }