[m-rev.] for review: fix MR_hash_string() bug

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Nov 21 19:54:37 AEDT 2002


On 21-Nov-2002, Simon Taylor <stayl at cs.mu.OZ.AU> wrote:
> 
> Estimated hours taken: 1
> Branches: main, release
> 
> runtime/mercury_string.h:
> 	Fix a bug which caused the results of MR_hash_string()
> 	and string__hash to differ -- cast each character to
> 	MR_UnsignedChar before combining it with the hash value.
> 
> tests/hard_coded/Mmakefile:
> tests/hard_coded/string_hash.{m,exp}:
> 	Test case.

That looks fine, thanks.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list