Bug 18932 – core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2018-06-01T13:54:06Z
Last change time
2018-06-03T12:15:58Z
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2018-06-01T13:54:06Z
Currently fails: unittest { import core.internal.hash : hashOf; assert(hashOf(null, 0) != hashOf(null, 123456789)); }
Comment #1 by n8sh.secondary — 2018-06-01T14:01:07Z
Comment #2 by github-bugzilla — 2018-06-03T12:15:57Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/a66bf90b88dfd5587d6f020d5bf4225f2784190a Fix Issue 18932 - core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer https://github.com/dlang/druntime/commit/52f2367ba84227f9701de2df6b82f9e97257f0c1 Merge pull request #2202 from n8sh/core-hash-18932 Fix Issue 18932 - core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer merged-on-behalf-of: Sebastian Wilzbach <[email protected]>