Files
mercury/tests/hard_coded/string_hash.exp
Simon Taylor 2b822930c3 Fix a bug which caused the results of MR_hash_string()
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.
2002-11-21 09:00:28 +00:00

2 lines
20 B
Plaintext