1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibJS: Add parentheses around modulo operation

This is an editorial change in the Temporal spec.

See: 90e4b34
This commit is contained in:
Linus Groh 2022-06-14 23:43:45 +01:00
parent 287dd03e2e
commit aaa9524a52

View file

@ -176,7 +176,7 @@ ISOYearMonth balance_iso_year_month(double year, double month)
// 2. Set year to year + floor((month - 1) / 12).
year += floor((month - 1) / 12);
// 3. Set month to (month - 1) modulo 12 + 1.
// 3. Set month to ((month - 1) modulo 12) + 1.
month = modulo(month - 1, 12) + 1;
// 4. Return the Record { [[Year]]: year, [[Month]]: month }.