diff options
| author | bors <bors@rust-lang.org> | 2014-06-08 12:51:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-06-08 12:51:51 -0700 |
| commit | e688d0e846e4fc24ab032b2c301fa355235c108a (patch) | |
| tree | ed6522d5f7ea5436c9fdd32cd9d6bb6c75c52e3f /src/libstd/num | |
| parent | 8dcbdaaeb79c69cc3ba6efb68650c89ca47969e4 (diff) | |
| parent | 45e56eccbed3161dd9de547c6c2dcf618114a484 (diff) | |
auto merge of #14751 : jbcrail/rust/fix-comments, r=alexcrichton
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/strconv.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/num/strconv.rs b/src/libstd/num/strconv.rs index 133a8db90fa..48962ca59d8 100644 --- a/src/libstd/num/strconv.rs +++ b/src/libstd/num/strconv.rs @@ -636,7 +636,7 @@ pub fn from_str_bytes_common<T:NumCast+Zero+One+PartialEq+PartialOrd+Div<T,T>+ if accum_positive && accum <= last_accum { return NumStrConv::inf(); } if !accum_positive && accum >= last_accum { return NumStrConv::neg_inf(); } - // Detect overflow by reversing the shift-and-add proccess + // Detect overflow by reversing the shift-and-add process if accum_positive && (last_accum != ((accum - cast(digit as int).unwrap())/radix_gen.clone())) { return NumStrConv::inf(); |
