mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-10-14 15:02:54 +00:00
hw/rtc/twl92230: Use int64_t for sec_offset and alm_sec
In the twl92230 device, use int64_t for the two state fields sec_offset and alm_sec, because we set these to values that are either time_t or differences between two time_t values. These fields aren't saved in vmstate anywhere, so we can safely widen them. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
7038b6e4e7
commit
279695a4a4
|
@ -65,8 +65,8 @@ struct MenelausState {
|
||||||
struct tm tm;
|
struct tm tm;
|
||||||
struct tm new;
|
struct tm new;
|
||||||
struct tm alm;
|
struct tm alm;
|
||||||
int sec_offset;
|
int64_t sec_offset;
|
||||||
int alm_sec;
|
int64_t alm_sec;
|
||||||
int next_comp;
|
int next_comp;
|
||||||
} rtc;
|
} rtc;
|
||||||
uint16_t rtc_next_vmstate;
|
uint16_t rtc_next_vmstate;
|
||||||
|
|
Loading…
Reference in a new issue