aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/WriteFile.zig
diff options
context:
space:
mode:
authorSean <69403556+SeanTheGleaming@users.noreply.github.com>2024-05-16 18:56:35 -0400
committerVeikka Tuominen <git@vexu.eu>2024-05-27 13:22:50 +0300
commitc0da92f71476651ac654249d54512e514b55df55 (patch)
tree6e97c4981735facf5d044fb148ceaa91c6d3b79c /lib/std/Build/Step/WriteFile.zig
parent389181f6be8810b5cd432e236a962229257a5b59 (diff)
downloadzig-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 'lib/std/Build/Step/WriteFile.zig')
0 files changed, 0 insertions, 0 deletions