Peter Maydell 7e7e5858f8 hw/arm/omap1: Avoid unintended sign extension writing omap_rtc YEARS_REG
When writing to the YEARS_REG register, if the year value is
99 then the multiplication by 31536000 will overflow into
the sign bit of a 32 bit value and then be erroneously
sign-extended if time_t is 64 bits. Add a cast to avoid this.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
2014-05-13 16:09:39 +01:00
..
2013-08-28 10:16:47 +03:00
2013-12-17 20:12:51 +00:00
2013-08-28 10:16:47 +03:00
2013-12-17 20:12:51 +00:00
2014-02-14 16:22:31 +01:00
2014-02-14 16:22:32 +01:00
2014-02-14 16:22:31 +01:00
2014-05-01 15:25:52 +01:00