From 52c8d2ba56231a4a61be28a46b198b28ed89a3b5 Mon Sep 17 00:00:00 2001 From: dgp Date: Mon, 25 Feb 2002 16:23:26 +0000 Subject: * 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). --- ChangeLog | 6 ++++++ compat/strtol.c | 4 ++-- 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 + + * 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 * 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 @@ -54,7 +54,7 @@ strtol(string, endPtr, base) */ { register CONST char *p; - int result; + long result; /* * Skip any leading blanks. -- cgit v0.12