diff options
author | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-07-08 12:02:48 +0000 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2008-07-08 12:02:48 +0000 |
commit | 5bcaa86b3b74d7972c51a495c7a8c358e9515fd8 (patch) | |
tree | 2c3623210b1a3f14eabd3748dc7294a54beebdda /Configure | |
parent | 98916cfa40d9f419e90e2fb0494450bd460c85d9 (diff) | |
download | perl-5bcaa86b3b74d7972c51a495c7a8c358e9515fd8.tar.gz |
Be sure to use the correct type, so bits do not get wrapped
p4raw-id: //depot/perl@34112
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -25,7 +25,7 @@ # $Id: Head.U 6 2006-08-25 22:21:46Z rmanfredi $ # -# Generated on Mon Jul 7 22:34:20 CEST 2008 [metaconfig 3.5 PL0] +# Generated on Tue Jul 8 13:24:59 CEST 2008 [metaconfig 3.5 PL0] # (with additional metaconfig patches by perlbug@perl.org) cat >c1$$ <<EOF @@ -20021,18 +20021,18 @@ int main () { time_t pt = 0; for (i = 0; i < 78; i++) { - time_t t = (1 << i) - 1; + time_t t = ((time_t)1 << i) - 1; tmp = gmtime (&t); if (tmp == NULL || tmp->tm_year < y) { i--; - printf ("%d\n", pt); + printf ("%ld\n", pt); return (i); } y = tmp->tm_year; pt = t; } - printf ("%d\n", pt); + printf ("%ld\n", pt); return (0); } EOCP @@ -20056,18 +20056,18 @@ int main () { time_t pt = 0; for (i = 0; i < 78; i++) { - time_t t = - (1 << i); + time_t t = - ((time_t)1 << i); tmp = gmtime (&t); if (tmp == NULL || tmp->tm_year > y) { i--; - printf ("%d\n", pt); + printf ("%ld\n", pt); return (i); } y = tmp->tm_year; pt = t; } - printf ("%d\n", pt); + printf ("%ld\n", pt); return (0); } EOCP |