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