diff options
Diffstat (limited to 'hw/exynos4210_rtc.c')
-rw-r--r-- | hw/exynos4210_rtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/exynos4210_rtc.c b/hw/exynos4210_rtc.c index f78102049b..b42586eb21 100644 --- a/hw/exynos4210_rtc.c +++ b/hw/exynos4210_rtc.c @@ -142,7 +142,7 @@ static const VMStateDescription vmstate_exynos4210_rtc_state = { }; #define BCD3DIGITS(x) \ - ((uint32_t)to_bcd((uint8_t)x) + \ + ((uint32_t)to_bcd((uint8_t)(x % 100)) + \ ((uint32_t)to_bcd((uint8_t)((x % 1000) / 100)) << 8)) static void check_alarm_raise(Exynos4210RTCState *s) |