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 57dac73 commit 612d622Copy full SHA for 612d622
jsoniter-scala-core/js/src/main/scala/com/github/plokhotnyuk/jsoniter_scala/core/JsonReader.scala
@@ -2917,7 +2917,7 @@ final class JsonReader private[jsoniter_scala](
2917
state = 0
2918
} else if (b == 'H' && state <= 0) {
2919
if (x < -2562047788015215L || x > 2562047788015215L) durationError(pos) // -2562047788015215L == Long.MinValue / 3600
2920
- seconds = sumSeconds(x * 3600, seconds, pos)
+ seconds = sumSeconds((x << 12) - (x << 9) + (x << 4), seconds, pos)
2921
state = 1
2922
} else if (b == 'M' && state <= 1) {
2923
if (x < -153722867280912930L || x > 153722867280912930L) durationError(pos) // -153722867280912930L == Long.MinValue / 60
0 commit comments