diff options
author | Tony Cook <tony@develop-help.com> | 2012-01-18 14:36:12 +1100 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2012-01-18 14:40:47 +1100 |
commit | e2054bceda6db6aa9644dfd39b55e7f06bcbbdce (patch) | |
tree | 43869edad1fa32665b7e0ab5fb8edba0a655f67b /op.c | |
parent | 33f89799d9328f3d175aa913900d16794119e284 (diff) | |
download | perl-e2054bceda6db6aa9644dfd39b55e7f06bcbbdce.tar.gz |
avoid truncating time values when long is smaller than time_t
long is only 32-bits on x64 Win32, but time_t is 64-bits. This was warning:
POSIX.xs(1777) : warning C4244: 'initializing' : conversion from 'time_t' to 'const long', possible loss of data
The check against (time_t)-1 is the approved check from ANSI C 89 and
99.
Diffstat (limited to 'op.c')
0 files changed, 0 insertions, 0 deletions