diff options
| author | Laytan <laytanlaats@hotmail.com> | 2024-08-12 19:14:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-12 19:14:15 +0200 |
| commit | fb09ec06d3fba678f5a218e16db87dedf31fd37a (patch) | |
| tree | ffac25ab88858f50d07979fdad6f7a40ea696268 | |
| parent | b71e0c2e3673b5b712847cf67e9a196a4d2d136b (diff) | |
| parent | 4f568222048d49a12eb66bf92bc5787d74582863 (diff) | |
Merge pull request #4066 from Tetralux/fmt-bitfields-pointers
[fmt] Add bit fields to the pointer printing logic
| -rw-r--r-- | core/fmt/fmt.odin | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fmt/fmt.odin b/core/fmt/fmt.odin index 7b86fd1b7..0d11ad8a9 100644 --- a/core/fmt/fmt.odin +++ b/core/fmt/fmt.odin @@ -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 |