summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/pcrtc.c
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2003-06-01 04:51:07 +0000
committernyan <nyan@FreeBSD.org>2003-06-01 04:51:07 +0000
commit606016928a8d12daa870438804bb9746846bf219 (patch)
tree9c7f44b13c898b41111573bb6acf4c6596d5d298 /sys/pc98/cbus/pcrtc.c
parent6a8f27403295fcb3809a61c40733b8c55359b112 (diff)
downloadFreeBSD-src-606016928a8d12daa870438804bb9746846bf219.zip
FreeBSD-src-606016928a8d12daa870438804bb9746846bf219.tar.gz
MFi386: revision 1.199
Diffstat (limited to 'sys/pc98/cbus/pcrtc.c')
-rw-r--r--sys/pc98/cbus/pcrtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pc98/cbus/pcrtc.c b/sys/pc98/cbus/pcrtc.c
index bc03ea6..0b846b6 100644
--- a/sys/pc98/cbus/pcrtc.c
+++ b/sys/pc98/cbus/pcrtc.c
@@ -106,7 +106,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))
OpenPOWER on IntegriCloud