0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00

fix std.fmt to handle std.SegmentedList

- add guards for use of prealloc_exp in SegmentedList
- define prealloc_exp even when invalid because std.fmt comptime
  triggers lazy-init
- fix std.fmt to print arrays of length 0 as style "[0]<typename>"
  because "<typename>@address" is n/a without address
This commit is contained in:
Michael Dusan 2019-07-25 19:59:34 -04:00 • committed by Andrew Kelley
commit bc982e65cf
2 changed files with 21 additions and 11 deletions