odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.9k stars 606 forks source link

[fmt] Add bit fields to the pointer printing logic #4066

Closed Tetralux closed 2 months ago

Tetralux commented 2 months ago

core:fmt prints pointers to structs as &StructName{ ... } but bit_fields are currently printed the same as rawptrs (0xAABBCCDDEEFF only).

This commit changes that so they behave the same as structs and unions.