summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2023-03-22 17:54:26 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2023-03-22 17:54:26 (GMT)
commit178c9d17be739385d0447d7cce2effc564e52f04 (patch)
treecaf8bdd1d5a5aa37920d9f6b2681f857319808f7
parenta4b2c694cea871812810159d549cbe9ebf3acdd8 (diff)
parent1eefaec4712a22b1cea12961deb534381158010e (diff)
downloadtcl-178c9d17be739385d0447d7cce2effc564e52f04.zip
tcl-178c9d17be739385d0447d7cce2effc564e52f04.tar.gz
tcl-178c9d17be739385d0447d7cce2effc564e52f04.tar.bz2
Merge trunk 6ef2153f20: Minor cleanup (Thanks, Gustaf!).
-rw-r--r--generic/tclLiteral.c4
-rw-r--r--generic/tclProc.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c
index 24e99fc..c3f0f7d 100644
--- a/generic/tclLiteral.c
+++ b/generic/tclLiteral.c
@@ -179,8 +179,8 @@ TclCreateLiteral(
const char *bytes, /* The start of the string. Note that this is
* not a NUL-terminated string. */
size_t length, /* Number of bytes in the string. */
- size_t hash, /* The string's hash. If -1, it will be
- * computed here. */
+ size_t hash, /* The string's hash. If the value is
+ * TCL_INDEX_NONE, it will be computed here. */
int *newPtr,
Namespace *nsPtr,
int flags,
diff --git a/generic/tclProc.c b/generic/tclProc.c
index c8a304a..a472a2d 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -1298,7 +1298,7 @@ InitLocalCache(
*namePtr = NULL;
} else {
*namePtr = TclCreateLiteral(iPtr, localPtr->name,
- localPtr->nameLength, /* hash */ (size_t) -1,
+ localPtr->nameLength, /* hash */ TCL_INDEX_NONE,
&isNew, /* nsPtr */ NULL, 0, NULL);
Tcl_IncrRefCount(*namePtr);
}