On 23 November 2017 at 16:00, Paolo Bonzini <pbonz...@redhat.com> wrote: > On 23/11/2017 16:56, Peter Maydell wrote: >> In our various supported host OSes, the time_t type may be either 32 >> or 64 bit, and could in theory also be either signed or unsigned. >> Notably, in OpenBSD time_t is a 64 bit type even if 'long' is 32 >> bits, so using LONG_MAX for TIME_MAX is incorrect. >> >> Use an approach suggested by Paolo Bonzini which calculates >> the maximum value of the type rather than hardcoding it; >> to do this we use the TYPE_MAXIMUM macro from Gnulib. >> >> Suggested-by: Paolo Bonzini <pbonz...@redhat.com> >> Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> >> ---
> Reviewed-by: Paolo Bonzini <pbonz...@redhat.com> Thanks; applied to master. -- PMM