diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-08-31 11:50:31 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-08-31 21:25:00 +0000 |
commit | 52cf9a9a33aad98b8210fb9e58f74d18de565073 (patch) | |
tree | 1b4483b2e6d5ee18ad4b9d2f0c8ebdb5f34be739 /gcc | |
parent | ba792413aef90a5ddcb1b0e22442b47b3f43b251 (diff) | |
download | gcc-52cf9a9a33aad98b8210fb9e58f74d18de565073.zip gcc-52cf9a9a33aad98b8210fb9e58f74d18de565073.tar.gz gcc-52cf9a9a33aad98b8210fb9e58f74d18de565073.tar.bz2 |
gccrs: fix bug in the iterator testcase
gcc/testsuite/ChangeLog:
* rust/compile/iterators1.rs: this should be casting to the $ty
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/rust/compile/iterators1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/compile/iterators1.rs b/gcc/testsuite/rust/compile/iterators1.rs index 33736f1..35fea5a 100644 --- a/gcc/testsuite/rust/compile/iterators1.rs +++ b/gcc/testsuite/rust/compile/iterators1.rs @@ -264,7 +264,7 @@ macro_rules! impl_uint { } pub fn overflowing_add(self, rhs: Self) -> (Self, bool) { - let (a, b) = unsafe { intrinsics::add_with_overflow(self as i32, rhs as i32) }; + let (a, b) = unsafe { intrinsics::add_with_overflow(self as $ty, rhs as $ty) }; (a as Self, b) } } |