Skip to content

Commit 15595e5

Browse files
authored
Update pc98rtc.c
1 parent ea5a157 commit 15595e5

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

boot/freeldr/freeldr/arch/i386/pc98/pc98rtc.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77

88
#include <freeldr.h>
99

10-
#define BCD_INT(bcd) (((bcd & 0xF0) >> 4) * 10 + (bcd & 0x0F))
10+
static
11+
UCHAR
12+
BCD_INT(
13+
_In_ UCHAR Bcd)
14+
{
15+
return ((Bcd & 0xF0) >> 4) * 10 + (Bcd & 0x0F);
16+
}
1117

1218
TIMEINFO*
1319
Pc98GetTime(VOID)

0 commit comments

Comments
 (0)