diff options
| author | hobbs <hobbs> | 2002-11-12 02:23:18 (GMT) |
|---|---|---|
| committer | hobbs <hobbs> | 2002-11-12 02:23:18 (GMT) |
| commit | 25e59a1711adec1593ce4eb2afcb478105eccc38 (patch) | |
| tree | 671a4cc8bb58ea9e0450252acf9e41333c9c84f7 | |
| parent | 06db68c91416b23846668c1520750a6cda26831c (diff) | |
| download | tcl-25e59a1711adec1593ce4eb2afcb478105eccc38.zip tcl-25e59a1711adec1593ce4eb2afcb478105eccc38.tar.gz tcl-25e59a1711adec1593ce4eb2afcb478105eccc38.tar.bz2 | |
* generic/tclHash.c (HashStringKey): move string++ lower to save
an instruction.
| -rw-r--r-- | generic/tclHash.c | 4 |
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; } |
