Casts have a higher precedence than other operators
This commit is contained in:
Lukas Eder 2021-11-26 13:59:59 +01:00
parent 5716a9aa77
commit 9727e95dba

View File

@ -9847,7 +9847,7 @@ final class DefaultParseContext extends AbstractScope implements ParseContext {
while (!parseIf('\''));
int months = (month == null ? 0 : month.intValue())
+ (year == null ? 0 : asInt((long) year.doubleValue() * 12));
+ (year == null ? 0 : asInt((long) (year.doubleValue() * 12)));
double seconds = (month == null ? 0.0 : ((month.doubleValue() % 1.0) * 30 * 86400))
+ (day == null ? 0.0 : ((day.doubleValue() * 86400)))