Fix handling of empty struct fields
Structs can have singleton fields that take up no space.
This commit is contained in:
parent
ae3e6b7403
commit
7dd9352d70
|
@ -94,6 +94,7 @@ function memorylayout(io::IO, type::DataType)
|
|||
bars = AnnotatedString[]
|
||||
descs = AnnotatedString[]
|
||||
for (; i, size, contentsize, ispointer) in si
|
||||
size == 0 && continue
|
||||
color = FACE_CYCLE[i % length(FACE_CYCLE) + 1]
|
||||
width = max(2, memscale * size÷memstep)
|
||||
color = FACE_CYCLE[i % length(FACE_CYCLE) + 1]
|
||||
|
|
Loading…
Reference in New Issue