summaryrefslogtreecommitdiffstats
path: root/generic/tclHash.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-11-12 02:23:17 (GMT)
committerhobbs <hobbs@noemail.net>2002-11-12 02:23:17 (GMT)
commita7c190fce459cc7b10e87d5b5b49078057a0848b (patch)
tree671a4cc8bb58ea9e0450252acf9e41333c9c84f7 /generic/tclHash.c
parent932072013cd2cc616dfecea52ecc076f4ba5766c (diff)
downloadtcl-a7c190fce459cc7b10e87d5b5b49078057a0848b.zip
tcl-a7c190fce459cc7b10e87d5b5b49078057a0848b.tar.gz
tcl-a7c190fce459cc7b10e87d5b5b49078057a0848b.tar.bz2
* generic/tclHash.c (HashStringKey): move string++ lower to save
an instruction. FossilOrigin-Name: f1d00748cb000556fa3700ec857e14709d6baabf
Diffstat (limited to 'generic/tclHash.c')
-rw-r--r--generic/tclHash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclHash.c b/generic/tclHash.c
index e7bd472..45726d9 100644
--- a/generic/tclHash.c
+++ b/generic/tclHash.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclHash.c,v 1.11 2002/02/26 02:16:09 hobbs Exp $
+ * RCS: @(#) $Id: tclHash.c,v 1.12 2002/11/12 02:23:18 hobbs Exp $
*/
#include "tclInt.h"
@@ -1019,11 +1019,11 @@ HashStringKey(tablePtr, keyPtr)
result = 0;
while (1) {
c = *string;
- string++;
if (c == 0) {
break;
}
result += (result<<3) + c;
+ string++;
}
return result;
}