diff options
author | dkf <dkf@noemail.net> | 2004-03-30 22:27:47 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2004-03-30 22:27:47 (GMT) |
commit | 288329815b7649fad88b0d8c5524256e839be8fc (patch) | |
tree | 80c239bbe0fa5389c0f440b7627e90fea9711d0a /generic/tclLiteral.c | |
parent | f6131cc2103842f355ed68c4035f6d0d1878ea65 (diff) | |
download | tcl-288329815b7649fad88b0d8c5524256e839be8fc.zip tcl-288329815b7649fad88b0d8c5524256e839be8fc.tar.gz tcl-288329815b7649fad88b0d8c5524256e839be8fc.tar.bz2 |
More hash function cleaning up.
FossilOrigin-Name: f32595c38621c2bfbe6843a2bfd2db8ce6fe6683
Diffstat (limited to 'generic/tclLiteral.c')
-rw-r--r-- | generic/tclLiteral.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclLiteral.c b/generic/tclLiteral.c index d5d354f..de41e64 100644 --- a/generic/tclLiteral.c +++ b/generic/tclLiteral.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclLiteral.c,v 1.12 2003/12/24 04:18:20 davygrvy Exp $ + * RCS: @(#) $Id: tclLiteral.c,v 1.13 2004/03/30 22:27:49 dkf Exp $ */ #include "tclInt.h" @@ -789,8 +789,8 @@ HashString(bytes, length) */ result = 0; - for (i = 0; i < length; i++) { - result += (result<<3) + *bytes++; + for (i=0 ; i<length ; i++) { + result += (result<<3) + bytes[i]; } return result; } |