We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
java.time.Duration
1 parent 2b50366 commit 6a533caCopy full SHA for 6a533ca
jsoniter-scala-core/js/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala
@@ -2921,7 +2921,7 @@ final class JsonReader private[jsoniter_scala](
2921
state = 1
2922
} else if (b == 'M' && state <= 1) {
2923
if (x < -153722867280912930L || x > 153722867280912930L) durationError(pos) // -153722867280912930L == Long.MinValue / 60
2924
- seconds = sumSeconds(x * 60, seconds, pos)
+ seconds = sumSeconds(((x << 4) - x) << 2, seconds, pos)
2925
state = 2
2926
} else if (b == 'S' || b == '.') {
2927
seconds = sumSeconds(x, seconds, pos)
0 commit comments