summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2013-03-20 13:24:09 -0700
committerPatrick Walton <pcwalton@mimiga.net>2013-03-20 13:54:25 -0700
commit9c4d804cfe421d9a48ba2f0c6d12b7c654e75964 (patch)
treef8450f0cf9fe18b082df59105e5b25c2724410c5 /src/libcore/num
parent0847d52a8677a39525b7cf7a09571851b6deb8b9 (diff)
downloadrust-9c4d804cfe421d9a48ba2f0c6d12b7c654e75964.tar.gz
rust-9c4d804cfe421d9a48ba2f0c6d12b7c654e75964.zip
libsyntax: Never use `::<>` in the type grammar
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/strconv.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/num/strconv.rs b/src/libcore/num/strconv.rs
index 50fc1b03ccc..d471eda74c6 100644
--- a/src/libcore/num/strconv.rs
+++ b/src/libcore/num/strconv.rs
@@ -165,7 +165,7 @@ pub pure fn to_str_bytes_common<T:NumCast+Zero+One+Eq+Ord+NumStrConv+Copy+
                                   Div<T,T>+Neg<T>+Modulo<T,T>+Mul<T,T>>(
         num: &T, radix: uint, negative_zero: bool,
         sign: SignFormat, digits: SignificantDigits) -> (~[u8], bool) {
-    if radix as int <  2 {
+    if (radix as int) < 2 {
         fail!(fmt!("to_str_bytes_common: radix %? to low, \
                    must lie in the range [2, 36]", radix));
     } else if radix as int > 36 {
@@ -455,10 +455,10 @@ pub pure fn from_str_bytes_common<T:NumCast+Zero+One+Ord+Copy+Div<T,T>+
         _ if special && radix >= DIGIT_I_RADIX // first digit of 'inf'
           => fail!(fmt!("from_str_bytes_common: radix %? incompatible with \
                         special values 'inf' and 'NaN'", radix)),
-        _ if radix as int < 2
+        _ if (radix as int) < 2
           => fail!(fmt!("from_str_bytes_common: radix %? to low, \
                         must lie in the range [2, 36]", radix)),
-        _ if radix as int > 36
+        _ if (radix as int) > 36
           => fail!(fmt!("from_str_bytes_common: radix %? to high, \
                         must lie in the range [2, 36]", radix)),
         _ => ()