[Issue 19073] core.internal.hash should not bitwise hash representations of floating point numbers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 27 18:45:40 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=19073

--- Comment #1 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/druntime

https://github.com/dlang/druntime/commit/7ebe816eaeb83394558ae5467920eebc9ebde2d9
Fix Issue 19073 - core.internal.hash should not bitwise hash representations of
floating point numbers

Other minor improvements:
- Make hash of static arrays more efficient.
- More precise test for when memberwise hashing of structs is necessary (fewer
false positives).
- Make required return type of `toHash` less brittle.
- Special handling for structs wrapping a single element (like
std.typecons.Typedef).
- Infer scope const for some arrays.
- Infer scope const for some structs and unions.
- Infer scope const and specialize for final classes that don't override
toHash.
- Infer scope const and remove unnecessary auto ref for some enums.
- As previously, uint and int have same hash.
- Slightly clean up bytesHash.

https://github.com/dlang/druntime/commit/33659bf5897881537436459229f6c228d6776d89
Merge pull request #2240 from n8sh/core-hash-misc-improvements

Fix Issue 19073 - core.internal.hash should not bitwise hash representations of
floating point numbers, plus minor improvements and refactoring
merged-on-behalf-of: Nathan Sashihara <n8sh at users.noreply.github.com>

--


More information about the Digitalmars-d-bugs mailing list