summaryrefslogtreecommitdiffstats
path: root/generic/tclDate.c
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2006-06-14 15:21:11 (GMT)
committerpatthoyts <patthoyts@noemail.net>2006-06-14 15:21:11 (GMT)
commit26def5e28a2449cd4807761ea7bc0c2a58e6e283 (patch)
treeb7f93c0f3fad3eccfb16e8fcd337ce453d85e1c7 /generic/tclDate.c
parent93426f291c215a592a4fa06ce6e9d6dcce1d4227 (diff)
downloadtcl-26def5e28a2449cd4807761ea7bc0c2a58e6e283.zip
tcl-26def5e28a2449cd4807761ea7bc0c2a58e6e283.tar.gz
tcl-26def5e28a2449cd4807761ea7bc0c2a58e6e283.tar.bz2
Enable building Tcl with Microsoft's latest compiler offering
(VS2005). We have to handle a number of oddities as they have deprecated most of the standard C library and now generate manifest files to be linked into the binaries. SF bug #1424909 FossilOrigin-Name: f0865d186be22364b93769489cba19c7df78ef9f
Diffstat (limited to 'generic/tclDate.c')
-rw-r--r--generic/tclDate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclDate.c b/generic/tclDate.c
index e6a8a90..be6ec42 100644
--- a/generic/tclDate.c
+++ b/generic/tclDate.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclDate.c,v 1.20.4.2 2005/11/04 20:15:09 kennykb Exp $
+ * RCS: @(#) $Id: tclDate.c,v 1.20.4.3 2006/06/14 15:21:14 patthoyts Exp $
*/
#include "tclInt.h"
@@ -478,7 +478,7 @@ Convert(Month, Day, Year, Hours, Minutes, Seconds, Meridian, DSTmode, TimePtr)
for (i = EPOCH; i < Year; i++)
Julian += 365 + IsLeapYear(i);
} else {
- for (i = Year; i < EPOCH; i++)
+ for (i = (int)Year; i < EPOCH; i++)
Julian -= 365 + IsLeapYear(i);
}
Julian *= SECSPERDAY;
@@ -547,7 +547,7 @@ NamedMonth(Start, MonthOrdinal, MonthNumber)
* doing next february from january gives us february of the current year)
* set day to 1, time to 0
*/
- tm->tm_year += MonthOrdinal;
+ tm->tm_year += (int)MonthOrdinal;
if (tm->tm_mon < MonthNumber - 1) {
tm->tm_year--;
}