mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 02:27:48 +00:00
+1
-1
@@ -554,7 +554,7 @@ func (t rawType) Size() uintptr {
|
||||
return 0
|
||||
}
|
||||
lastField := t.rawField(numField - 1)
|
||||
return lastField.Offset + lastField.Type.Size()
|
||||
return align(lastField.Offset+lastField.Type.Size(), uintptr(t.Align()))
|
||||
default:
|
||||
panic("unimplemented: size of type")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user