]> git.saurik.com Git - wxWidgets.git/commit - include/wx/datetime.h
Use wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jul 2009 17:56:35 +0000 (17:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 22 Jul 2009 17:56:35 +0000 (17:56 +0000)
commit57563c712bf8cc76650aecf33db066fcc20439d2
treebe1250f4cf4d2656d146941e8791061abeb9a67f
parenteaed41872cd1bd127d33952073b8850f282dd964
Use wxINT32_MAX instead of LONG_MAX as the upper bound in wxDateTime::IsInStdRange().

Under Debian Linux 64 bit time_t is 64 bit long but libc doesn't seem to handle values beyond 2^32
correctly, e.g. wrong results are returned from localtime() for them. And it would seem that platforms
where sizeof(long) > sizeof(time_t) might exist too so it seems safer to only work with 32 bit time_t
values until we can reliably detect platforms which support 64 bit ones.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/datetime.h