summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2002-02-25 16:23:26 (GMT)
committerdgp <dgp@users.sourceforge.net>2002-02-25 16:23:26 (GMT)
commit52c8d2ba56231a4a61be28a46b198b28ed89a3b5 (patch)
treef9d89c5d5fe9aa4f679e4248e172d8776ade7dad
parentf12100d783d57ed11817d4dbc7f4cdbe5b7dc3f5 (diff)
downloadtcl-52c8d2ba56231a4a61be28a46b198b28ed89a3b5.zip
tcl-52c8d2ba56231a4a61be28a46b198b28ed89a3b5.tar.gz
tcl-52c8d2ba56231a4a61be28a46b198b28ed89a3b5.tar.bz2
* compat/strtod.c (strtod): simplified #includes
* compat/strtol.c (strtol): gather result in a long before returning as a long: necessary on platforms where sizeof(int) != sizeof(long).
-rw-r--r--ChangeLog6
-rw-r--r--compat/strtol.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e2594f..126235c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-02-25 Don Porter <dgp@users.sourceforge.net>
+
+ * compat/strtod.c (strtod): simplified #includes
+ * compat/strtol.c (strtol): gather result in a long before returning
+ as a long: necessary on platforms where sizeof(int) != sizeof(long).
+
2002-02-25 Daniel Steffen <das@users.sourceforge.net>
* unix/tclLoadDyld.c: updated to use Mac OS X 10.1 dyld APIs that
diff --git a/compat/strtol.c b/compat/strtol.c
index f384f8a..78b0d59 100644
--- a/compat/strtol.c
+++ b/compat/strtol.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: strtol.c,v 1.3 2002/02/25 10:36:32 dkf Exp $
+ * RCS: @(#) $Id: strtol.c,v 1.4 2002/02/25 16:23:26 dgp Exp $
*/
#include <ctype.h>
@@ -54,7 +54,7 @@ strtol(string, endPtr, base)
*/
{
register CONST char *p;
- int result;
+ long result;
/*
* Skip any leading blanks.