summaryrefslogtreecommitdiffstats
path: root/generic/tclCompExpr.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-04 22:23:27 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-01-04 22:23:27 (GMT)
commit13ae5915d6044acc6a4675901be0f10a3f3d3bec (patch)
treef4c0055cc2f0c75b498e243dcaadf2d2caad5e83 /generic/tclCompExpr.c
parentae279a393f8d5d1938ed5fad5882fe59cd8050e8 (diff)
downloadtcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.zip
tcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.tar.gz
tcl-13ae5915d6044acc6a4675901be0f10a3f3d3bec.tar.bz2
Fix signed<->unsigned comparsion warning (occurring in some gcc compilation flags).
Micro-optimization: Use char array in stead of const char pointer for static variable.
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r--generic/tclCompExpr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c
index abb917f..27d7503 100644
--- a/generic/tclCompExpr.c
+++ b/generic/tclCompExpr.c
@@ -574,12 +574,12 @@ 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 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 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
@@ -658,7 +658,7 @@ ParseExpr(
*/
if (nodesUsed >= nodesAvailable) {
- int size = nodesUsed * 2;
+ unsigned size = nodesUsed * 2;
OpNode *newPtr = NULL;
do {