Skip to content

Commit

Permalink
Remove lowercase pattern match
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwalker committed Apr 9, 2015
1 parent 858225b commit e535bf5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ final class Deserializer[A](implicit A: BytesAccess[A]) {
read(bytes, Lf)
n * neg
case Minus parseNumInt(bytes, n, -1)
case b parseNumInt(bytes, (n * 10) + (b - '0'), neg)
case _ parseNumInt(bytes, (n * 10) + (current - '0'), neg)
}
}
}
Expand All @@ -109,7 +109,7 @@ final class Deserializer[A](implicit A: BytesAccess[A]) {
read(bytes, Lf)
n * neg
case Minus parseNumLong(bytes, n, -1)
case b parseNumLong(bytes, (n * 10) + (b - '0'), neg)
case _ parseNumLong(bytes, (n * 10) + (current - '0'), neg)
}
}
}
Expand Down

0 comments on commit e535bf5

Please sign in to comment.