diff options
| author | Sean <69403556+SeanTheGleaming@users.noreply.github.com> | 2024-05-16 18:56:35 -0400 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2024-05-27 13:22:50 +0300 |
| commit | c0da92f71476651ac654249d54512e514b55df55 (patch) | |
| tree | 6e97c4981735facf5d044fb148ceaa91c6d3b79c /test | |
| parent | 389181f6be8810b5cd432e236a962229257a5b59 (diff) | |
| download | zig-c0da92f71476651ac654249d54512e514b55df55.tar.gz zig-c0da92f71476651ac654249d54512e514b55df55.zip | |
hash_map.zig: Pass `self` by value and less pointer-int conversion
- Used `Self` instead of `*const Self` where appropriate (orignally proposed in #19770)
- Replaced `@intFromPtr` and `@ptrFromInt` with `@ptrCast`, `@alignCast`, and pointer arithmetic where appropriate
With this, the only remaining instance on pointer-int conversion in hash_map.zig is in `HashMapUnmanaged.removeByPtr`, which easily be able to be eliminated once pointer subtraction is supported.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
