mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
add implementaion of array alignment in reflect
This commit is contained in:
@@ -375,6 +375,8 @@ func (t Type) Align() int {
|
||||
}
|
||||
}
|
||||
return alignment
|
||||
case Array:
|
||||
return t.Elem().Align()
|
||||
default:
|
||||
panic("unimplemented: alignment of type")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user