diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:23:46 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:23:46 +0000 |
| commit | 9a3454805e17057819ecbab56f6585e15ebe96bf (patch) | |
| tree | 39fe8e54f12e27add37fe4b590021af570f4563b | |
| parent | 30f5ad0faf9ef227fd664841d0811aae433f692d (diff) | |
Notes
| -rw-r--r-- | sys/i386/isa/clock.c | 2 | ||||
| -rw-r--r-- | sys/isa/atrtc.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/isa/clock.c b/sys/i386/isa/clock.c index 9e6c489637e3..9d87758bc93c 100644 --- a/sys/i386/isa/clock.c +++ b/sys/i386/isa/clock.c @@ -105,7 +105,7 @@ static void setup_8254_mixed_mode(void); * 32-bit time_t's can't reach leap years before 1904 or after 2036, so we * can use a simple formula for leap years. */ -#define LEAPYEAR(y) ((u_int)(y) % 4 == 0) +#define LEAPYEAR(y) (((u_int)(y) % 4 == 0) ? 1 : 0) #define DAYSPERYEAR (31+28+31+30+31+30+31+31+30+31+30+31) #define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x)) diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 9e6c489637e3..9d87758bc93c 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -105,7 +105,7 @@ static void setup_8254_mixed_mode(void); * 32-bit time_t's can't reach leap years before 1904 or after 2036, so we * can use a simple formula for leap years. */ -#define LEAPYEAR(y) ((u_int)(y) % 4 == 0) +#define LEAPYEAR(y) (((u_int)(y) % 4 == 0) ? 1 : 0) #define DAYSPERYEAR (31+28+31+30+31+30+31+31+30+31+30+31) #define TIMER_DIV(x) ((timer_freq + (x) / 2) / (x)) |
