Skip to content

Commit

Permalink
Fix a parenthesis warning from errorprone
Browse files Browse the repository at this point in the history
  • Loading branch information
gbrail committed Jul 22, 2024
1 parent fe7b4e3 commit c0e1768
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rhino/src/main/java/org/mozilla/javascript/NativeDate.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,10 +534,10 @@ private static boolean IsLeapYear(int year) {
* floor((1968 - 1969) / 4) == -1
*/
private static double DayFromYear(double y) {
return ((365 * ((y) - 1970)
+ Math.floor(((y) - 1969) / 4.0)
- Math.floor(((y) - 1901) / 100.0)
+ Math.floor(((y) - 1601) / 400.0)));
return (365 * (y - 1970))
+ Math.floor((y - 1969) / 4.0)
- Math.floor((y - 1901) / 100.0)
+ Math.floor((y - 1601) / 400.0);
}

private static double TimeFromYear(double y) {
Expand Down

0 comments on commit c0e1768

Please sign in to comment.