about summary refs log tree commit diff
path: root/src/libcoretest
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-30 01:23:15 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-04-01 02:56:07 +0200
commit8d54ea3ec9c48eaeaab8fa9061cf28c2678e8ae9 (patch)
treeff336226413b38a84ac3afe29b5bb172f0f4473a /src/libcoretest
parent6808e414c7b29bfb066c1bbabff684bde1190a4e (diff)
downloadrust-8d54ea3ec9c48eaeaab8fa9061cf28c2678e8ae9.tar.gz
rust-8d54ea3ec9c48eaeaab8fa9061cf28c2678e8ae9.zip
Fallout from changes for overflow-checking during constant evaluation.
Diffstat (limited to 'src/libcoretest')
-rw-r--r--src/libcoretest/num/uint_macros.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoretest/num/uint_macros.rs b/src/libcoretest/num/uint_macros.rs
index 39e41a4fad3..e3eff6e7512 100644
--- a/src/libcoretest/num/uint_macros.rs
+++ b/src/libcoretest/num/uint_macros.rs
@@ -20,7 +20,7 @@ mod tests {
     fn test_overflows() {
         assert!(MAX > 0);
         assert!(MIN <= 0);
-        assert!(MIN + MAX + 1 == 0);
+        assert!((MIN + MAX).wrapping_add(1) == 0);
     }
 
     #[test]