Merge pull request #4066 from Tetralux/fmt-bitfields-pointers

[fmt] Add bit fields to the pointer printing logic
This commit is contained in:
Laytan
2024-08-12 19:14:15 +02:00
committed by GitHub

View File

@@ -2728,7 +2728,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
}
case runtime.Type_Info_Struct,
runtime.Type_Info_Union:
runtime.Type_Info_Union,
runtime.Type_Info_Bit_Field:
if ptr == nil {
io.write_string(fi.writer, "<nil>", &fi.n)
return