summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2008-07-08 12:02:48 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2008-07-08 12:02:48 +0000
commit5bcaa86b3b74d7972c51a495c7a8c358e9515fd8 (patch)
tree2c3623210b1a3f14eabd3748dc7294a54beebdda /Configure
parent98916cfa40d9f419e90e2fb0494450bd460c85d9 (diff)
downloadperl-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-xConfigure14
1 files changed, 7 insertions, 7 deletions
diff --git a/Configure b/Configure
index 1a9b2909ba..939bcfcc43 100755
--- a/Configure
+++ b/Configure
@@ -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