summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhobbs <hobbs>2000-11-02 09:20:44 (GMT)
committerhobbs <hobbs>2000-11-02 09:20:44 (GMT)
commitc088dfb737ad729c5f46e0c680ee535ef181cb97 (patch)
tree02edd529e8c2c06a0e9f41de4acfa894f2289fd8
parentfadf3ec505ede2d3e40a9e37747b3dc569ec60d7 (diff)
downloadtcl-c088dfb737ad729c5f46e0c680ee535ef181cb97.zip
tcl-c088dfb737ad729c5f46e0c680ee535ef181cb97.tar.gz
tcl-c088dfb737ad729c5f46e0c680ee535ef181cb97.tar.bz2
minor cast changes
-rw-r--r--generic/tclIndexObj.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 49bbe63..d304b84 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.6 2000/08/07 22:42:31 ericm Exp $
+ * RCS: @(#) $Id: tclIndexObj.c,v 1.7 2000/11/02 09:20:44 hobbs Exp $
*/
#include "tclInt.h"
@@ -183,7 +183,7 @@ Tcl_GetIndexFromObjStruct(interp, objPtr, tablePtr, offset, msg, flags,
}
for (entryPtr = tablePtr, i = 0; *entryPtr != NULL;
- entryPtr = (char **) ((long) entryPtr + offset), i++) {
+ entryPtr = (char **) ((size_t) entryPtr + offset), i++) {
for (p1 = key, p2 = *entryPtr; *p1 == *p2; p1++, p2++) {
if (*p1 == 0) {
index = i;
@@ -229,10 +229,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 **) ((long) tablePtr + offset), count = 0;
+ for (entryPtr = (char **) ((size_t) tablePtr + offset), count = 0;
*entryPtr != NULL;
- entryPtr = (char **) ((long) entryPtr + offset), count++) {
- if ((*((char **) ((long) entryPtr + offset))) == NULL) {
+ entryPtr = (char **) ((size_t) entryPtr + offset), count++) {
+ if ((*((char **) ((size_t) entryPtr + offset))) == NULL) {
Tcl_AppendStringsToObj(resultPtr,
(count > 0) ? ", or " : " or ", *entryPtr,
(char *) NULL);