summaryrefslogtreecommitdiffstats
path: root/compat
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 /compat
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).
Diffstat (limited to 'compat')
-rw-r--r--compat/strtol.c4
1 files changed, 2 insertions, 2 deletions
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.