diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | compat/strtol.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -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. |