mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 01:13:30 +00:00
Do not use bitwise and on booleans in Java.
library/time.m:
As above.
This commit is contained in:
@@ -930,7 +930,7 @@ mktime(TM, Time, !IO) :-
|
||||
java.time.zone.ZoneRules rules = tz.getRules();
|
||||
boolean isDST = rules.isDaylightSavings(Time0);
|
||||
|
||||
if (N == 1 & !isDST) {
|
||||
if (N == 1 && !isDST) {
|
||||
// If the time we constructed is not in daylight savings time,
|
||||
// but it should be, we need to subtract the DSTSavings.
|
||||
java.time.Duration savings = rules.getDaylightSavings(Time0);
|
||||
|
||||
Reference in New Issue
Block a user