summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAlan Wu <XrXr@users.noreply.github.com>2025-10-23 15:16:41 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2025-10-23 17:59:57 -0400
commitc2bce540f93aba77ddf89c7931a63b4e7108e466 (patch)
tree77c227c6ba1ebfb6814281deab4db4c942e0ebb4 /doc
parentf33cd1289e75c7091e61e54792a2b7e1f84ea697 (diff)
ZJIT: Replace `as usize` casts in codegen.rs
The `as` casts are somewhat dangerous since when the type on either side change, it silently becomes a lossy conversion. This is why we have `IntoUsize` as well as other guaranteed lossless conversion utilities in stdlib. Use them. For pointers-to-address, `ptr::addr` is more informative. See also: https://tratt.net/laurie/blog/2021/static_integer_types.html
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions