diff options
author | Miguel Sofer <miguel.sofer@gmail.com> | 2015-09-22 20:57:58 (GMT) |
---|---|---|
committer | Miguel Sofer <miguel.sofer@gmail.com> | 2015-09-22 20:57:58 (GMT) |
commit | ee0b1f4703492cd3d1889551e782882b6b081b46 (patch) | |
tree | 2e279d6451caeb3b5652d1541e549029ccde9b8f /generic/tclHash.c | |
parent | bd3fec22b475c3e3e0420a4db76adc41b1cdd8bf (diff) | |
download | tcl-ee0b1f4703492cd3d1889551e782882b6b081b46.zip tcl-ee0b1f4703492cd3d1889551e782882b6b081b46.tar.gz tcl-ee0b1f4703492cd3d1889551e782882b6b081b46.tar.bz2 |
micro-opt of hash lookups found by drh
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r-- | generic/tclHash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c index 90be511..1991aea 100644 --- a/generic/tclHash.c +++ b/generic/tclHash.c @@ -326,7 +326,7 @@ CreateHashEntry( continue; } #endif - if (compareKeysProc((void *) key, hPtr)) { + if (((void *) key == hPtr) || compareKeysProc((void *) key, hPtr)) { if (newPtr) { *newPtr = 0; } |