diff options
Diffstat (limited to 'coreutils/cal.c')
-rw-r--r-- | coreutils/cal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index 37aca00bb..317099385 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -45,7 +45,7 @@ static unsigned julian; | |||
45 | /* leap year -- account for Gregorian reformation in 1752 */ | 45 | /* leap year -- account for Gregorian reformation in 1752 */ |
46 | static int leap_year(unsigned yr) | 46 | static int leap_year(unsigned yr) |
47 | { | 47 | { |
48 | if (yr <= 1752) | 48 | if (yr <= 1752) |
49 | return !(yr % 4); | 49 | return !(yr % 4); |
50 | return (!(yr % 4) && (yr % 100)) || !(yr % 400); | 50 | return (!(yr % 4) && (yr % 100)) || !(yr % 400); |
51 | } | 51 | } |