Merge branch '1.20.1' into 1.19.4

This commit is contained in:
DBotThePony 2024-01-02 15:05:25 +07:00
commit b8f98f0e9e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -1498,8 +1498,8 @@ sealed class Decimal : Number(), Comparable<Decimal> {
} else { } else {
return when (input[0]) { return when (input[0]) {
TYPE_NORMAL -> raw(BigInteger(input.copyOfRange(1, input.size))) TYPE_NORMAL -> raw(BigInteger(input.copyOfRange(1, input.size)))
TYPE_NEGATIVE_INFINITY -> NegativeInfinity TYPE_NEGATIVE_INFINITY -> if (input.size == 1) NegativeInfinity else Zero
TYPE_POSITIVE_INFINITY -> PositiveInfinity TYPE_POSITIVE_INFINITY -> if (input.size == 1) PositiveInfinity else Zero
// TYPE_ZERO -> Zero // TYPE_ZERO -> Zero
else -> Zero else -> Zero
} }