diff options
| author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-22 17:54:26 (GMT) |
|---|---|---|
| committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-03-22 17:54:26 (GMT) |
| commit | 178c9d17be739385d0447d7cce2effc564e52f04 (patch) | |
| tree | caf8bdd1d5a5aa37920d9f6b2681f857319808f7 | |
| parent | a4b2c694cea871812810159d549cbe9ebf3acdd8 (diff) | |
| parent | 1eefaec4712a22b1cea12961deb534381158010e (diff) | |
| download | tcl-178c9d17be739385d0447d7cce2effc564e52f04.zip tcl-178c9d17be739385d0447d7cce2effc564e52f04.tar.gz tcl-178c9d17be739385d0447d7cce2effc564e52f04.tar.bz2 | |
Merge trunk 6ef2153f20: Minor cleanup (Thanks, Gustaf!).
| -rw-r--r-- | generic/tclLiteral.c | 4 | ||||
| -rw-r--r-- | generic/tclProc.c | 2 |
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); } |
