diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-04-09 08:06:08 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-04-09 08:06:09 -0400 |
commit | 603975b96a1542006f738a564171f98e264d32bf (patch) | |
tree | 68505b464572d4176e9258288741487456925f14 /test | |
parent | cd8e45b4e75ad2e62c0527a41870cf6e6242225d (diff) | |
parent | 9142dfea8181c6649c8d6a8775d53bc3e14de847 (diff) |
Merge #12770: Use explicit casting in cuckoocache's compute_hashes(...) to clarify integer conversion
9142dfea81 Use explicit casting in cuckoocache's compute_hashes(...) to clarify integer conversion (practicalswift)
Pull request description:
Use explicit casting in cuckoocache's `compute_hashes(...)` to clarify integer conversion.
I discussed this code with the code's author @JeremyRubin who suggested patching it to avoid any confusion.
At least one static analyzer incorrectly warns about a shift past bitwidth (UB) here, so this patch will help avoid confusion for human reviewers and static analyzers alike :-)
Tree-SHA512: 0419ee31b422d2ffedbd1a100688ec0ff5b0c1690d6d92592f638ca8db07a21a9650cb467923108c6f14a38d2bf07d6e6c85d2d1d4b7da53ffe6919f94f32655
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions