File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: c8db89aa82573b89481fde598da6e54371f266cb
2
+ refs/heads/master: 7c8edabac8030889f4a885b944c86190772953fd
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 3a96d6a9818fe2affc98a187fb1065120458cee9
5
5
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
Original file line number Diff line number Diff line change @@ -1569,8 +1569,8 @@ impl<T: Iterator<Item=char>> Parser<T> {
1569
1569
while !self . eof ( ) {
1570
1570
match self . ch_or_null ( ) {
1571
1571
c @ '0' ... '9' => {
1572
- accum *= 10 ;
1573
- accum += ( c as u64 ) - ( '0' as u64 ) ;
1572
+ accum = accum . wrapping_mul ( 10 ) ;
1573
+ accum = accum . wrapping_add ( ( c as u64 ) - ( '0' as u64 ) ) ;
1574
1574
1575
1575
// Detect overflow by comparing to the last value.
1576
1576
if accum <= last_accum { return self . error ( InvalidNumber ) ; }
You can’t perform that action at this time.
0 commit comments