diff options
author | hobbs <hobbs> | 2001-08-30 19:02:43 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2001-08-30 19:02:43 (GMT) |
commit | 9079a1dab3c2e0624379fcbac05dc8fdb9bafde5 (patch) | |
tree | 6a5590d43474019a386d6e19a1d22f5566238c44 | |
parent | eea085949939ceed9a3dd3c4b472d55d2a19f654 (diff) | |
download | tcl-9079a1dab3c2e0624379fcbac05dc8fdb9bafde5.zip tcl-9079a1dab3c2e0624379fcbac05dc8fdb9bafde5.tar.gz tcl-9079a1dab3c2e0624379fcbac05dc8fdb9bafde5.tar.bz2 |
* generic/tclIndexObj.c: fixed some casting problems that upset
Crays. [Bug #419528] (andreasen)
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclIndexObj.c | 10 |
2 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2001-08-30 Jeff Hobbs <jeffh@ActiveState.com> + + * generic/tclIndexObj.c: fixed some casting problems that upset + Crays. [Bug #419528] (andreasen) + 2001-08-30 Don Porter <dgp@users.sourceforge.net> * generic/tcl.h: Silence warning from Sun compiler. [Bug 454374] diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index 3c491dd..454bda6 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIndexObj.c,v 1.9 2001/05/26 01:25:59 msofer Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.10 2001/08/30 19:02:43 hobbs Exp $ */ #include "tclInt.h" @@ -177,7 +177,7 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags, } for (entryPtr = tablePtr, i = 0; *entryPtr != NULL; - entryPtr = (char **) ((size_t) entryPtr + offset), i++) { + entryPtr = (char **) ((char *) entryPtr + offset), i++) { for (p1 = key, p2 = *entryPtr; *p1 == *p2; p1++, p2++) { if (*p1 == 0) { index = i; @@ -222,10 +222,10 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags, Tcl_AppendStringsToObj(resultPtr, (numAbbrev > 1) ? "ambiguous " : "bad ", msg, " \"", key, "\": must be ", *tablePtr, (char *) NULL); - for (entryPtr = (char **) ((size_t) tablePtr + offset), count = 0; + for (entryPtr = (char **) ((char *) tablePtr + offset), count = 0; *entryPtr != NULL; - entryPtr = (char **) ((size_t) entryPtr + offset), count++) { - if ((*((char **) ((size_t) entryPtr + offset))) == NULL) { + entryPtr = (char **) ((char *) entryPtr + offset), count++) { + if ((*((char **) ((char *) entryPtr + offset))) == NULL) { Tcl_AppendStringsToObj(resultPtr, (count > 0) ? ", or " : " or ", *entryPtr, (char *) NULL); |