diff options
author | dgp <dgp@users.sourceforge.net> | 2016-03-22 16:53:06 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2016-03-22 16:53:06 (GMT) |
commit | ad2636b7e8114fc8aa5976a17b5e50ef840da416 (patch) | |
tree | 63c9f7e1d4a79e2e78a7e5da80f1ef385e8270aa /generic | |
parent | 08da639e50f42d9cb3447401a59db6669748f9a9 (diff) | |
parent | fd553241ab33882835ecf6065d61b775c9e2f1b1 (diff) | |
download | tcl-ad2636b7e8114fc8aa5976a17b5e50ef840da416.zip tcl-ad2636b7e8114fc8aa5976a17b5e50ef840da416.tar.gz tcl-ad2636b7e8114fc8aa5976a17b5e50ef840da416.tar.bz2 |
More signed/unsigned type correction.
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclCompExpr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c index 50edbec..4390282 100644 --- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.c @@ -564,13 +564,13 @@ ParseExpr( { OpNode *nodes = NULL; /* Pointer to the OpNode storage array where * we build the parse tree. */ - int nodesAvailable = 64; /* Initial size of the storage array. This + unsigned int nodesAvailable = 64; /* Initial size of the storage array. This * value establishes a minimum tree memory * cost of only about 1 kibyte, and is large * enough for most expressions to parse with * no need for array growth and * reallocation. */ - int nodesUsed = 0; /* Number of OpNodes filled. */ + unsigned int nodesUsed = 0; /* Number of OpNodes filled. */ int scanned = 0; /* Capture number of byte scanned by parsing * routines. */ int lastParsed; /* Stores info about what the lexeme parsed @@ -662,7 +662,7 @@ ParseExpr( */ if (nodesUsed >= nodesAvailable) { - int size = nodesUsed * 2; + unsigned int size = nodesUsed * 2; OpNode *newPtr = NULL; do { |