diff options
author | Philip Herron <herron.philip@googlemail.com> | 2023-08-31 11:50:31 +0100 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:30 +0100 |
commit | 979b38d4bef30787cdfda445045755832e02503c (patch) | |
tree | 7c77b89a5b359d440ca47c01938776521d113f84 /gcc | |
parent | b79f6432799f983470a5d19f4e91b45531166e90 (diff) | |
download | gcc-979b38d4bef30787cdfda445045755832e02503c.zip gcc-979b38d4bef30787cdfda445045755832e02503c.tar.gz gcc-979b38d4bef30787cdfda445045755832e02503c.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) } } |