mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
Merge pull request #4066 from Tetralux/fmt-bitfields-pointers
[fmt] Add bit fields to the pointer printing logic
This commit is contained in:
+2
-1
@@ -2728,7 +2728,8 @@ fmt_value :: proc(fi: ^Info, v: any, verb: rune) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case runtime.Type_Info_Struct,
|
case runtime.Type_Info_Struct,
|
||||||
runtime.Type_Info_Union:
|
runtime.Type_Info_Union,
|
||||||
|
runtime.Type_Info_Bit_Field:
|
||||||
if ptr == nil {
|
if ptr == nil {
|
||||||
io.write_string(fi.writer, "<nil>", &fi.n)
|
io.write_string(fi.writer, "<nil>", &fi.n)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user