Skip to content

Commit

Permalink
More efficient parsing of Long values with Scala.js
Browse files Browse the repository at this point in the history
  • Loading branch information
plokhotnyuk committed Jan 27, 2025
1 parent 0bdd0cc commit 25041de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ object UnsafeNumbers {
}) {
if (
accum < -922337203685477580L || {
accum = accum * 10 + ('0' - current)
accum = (accum << 3) + (accum << 1) + ('0' - current)
accum > 0
}
) throw UnsafeNumber
Expand Down

0 comments on commit 25041de

Please sign in to comment.