summaryrefslogtreecommitdiffstats
path: root/compat/strtol.c
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-02-25 16:23:26 (GMT)
committerdgp <dgp@noemail.net>2002-02-25 16:23:26 (GMT)
commitb866ed93f1aa6f5da8da7594f69f8b469d1b2143 (patch)
treef9d89c5d5fe9aa4f679e4248e172d8776ade7dad /compat/strtol.c
parent30d767492844e588fb499e73f624f96d3425dbcc (diff)
downloadtcl-b866ed93f1aa6f5da8da7594f69f8b469d1b2143.zip
tcl-b866ed93f1aa6f5da8da7594f69f8b469d1b2143.tar.gz
tcl-b866ed93f1aa6f5da8da7594f69f8b469d1b2143.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). FossilOrigin-Name: 051f9676eb730c896489edf2065c24a056aa1f14
Diffstat (limited to 'compat/strtol.c')
-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.