aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-08-31 11:50:31 +0100
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:30 +0100
commit979b38d4bef30787cdfda445045755832e02503c (patch)
tree7c77b89a5b359d440ca47c01938776521d113f84 /gcc
parentb79f6432799f983470a5d19f4e91b45531166e90 (diff)
downloadgcc-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.rs2
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)
}
}