Skip to content

Commit e644f00

Browse files
committed
use more obvious 100 >> 2 coonstant
1 parent 7bf8c48 commit e644f00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

std/assembly/date.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ function dayOfWeek(year: i32, month: i32, day: i32): i32 {
362362

363363
year -= i32(month < 3);
364364

365-
const century = floorDiv(year >> 2, 25);
365+
const century = floorDiv(year >> 2, 100 >> 2);
366366
year += (year >> 2) + (century >> 2) - century;
367367

368368
const monthOffset = <i32>load<u8>(tab + month - 1);

0 commit comments

Comments
 (0)