mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-15 17:33:38 +00:00
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.
2 lines
20 B
Plaintext
2 lines
20 B
Plaintext
all tests succeeded
|