Skip to content

Commit

Permalink
Fix compiler-warnings when TCL_COMPILE_DEBUG=1
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Dec 1, 2024
1 parent b2e8e17 commit cf4c69f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions generic/tclLiteral.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ LookupLiteralEntry(
LiteralTable *globalTablePtr = &iPtr->literalTable;
LiteralEntry *entryPtr;
const char *bytes;
size_t globalHash, length;
Tcl_Size globalHash, length;

bytes = TclGetStringFromObj(objPtr, &length);
globalHash = (HashString(bytes, length) & globalTablePtr->mask);
Expand Down Expand Up @@ -703,7 +703,8 @@ AddLocalLiteralEntry(
{
char *bytes;
int found;
size_t length, i;
size_t i;
Tcl_Size length;

found = 0;
for (i=0 ; i<localTablePtr->numBuckets ; i++) {
Expand Down Expand Up @@ -1183,7 +1184,8 @@ TclVerifyLocalLiteralTable(
LiteralTable *localTablePtr = &envPtr->localLitTable;
LiteralEntry *localPtr;
char *bytes;
size_t i, length, count = 0;
size_t i, count = 0;
Tcl_Size length;

for (i=0 ; i<localTablePtr->numBuckets ; i++) {
for (localPtr=localTablePtr->buckets[i] ; localPtr!=NULL;
Expand Down Expand Up @@ -1232,7 +1234,8 @@ TclVerifyGlobalLiteralTable(
LiteralTable *globalTablePtr = &iPtr->literalTable;
LiteralEntry *globalPtr;
char *bytes;
size_t i, length, count = 0;
size_t i, count = 0;
Tcl_Size length;

for (i=0 ; i<globalTablePtr->numBuckets ; i++) {
for (globalPtr=globalTablePtr->buckets[i] ; globalPtr!=NULL;
Expand Down

0 comments on commit cf4c69f

Please sign in to comment.