aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/decl.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/decl.go b/sys/decl.go
index de3554dbf..6c756fa07 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -327,11 +327,11 @@ func (t *StructType) Align() uintptr {
type UnionType struct {
TypeCommon
Options []Type
- varlen bool
+ Varlen bool
}
func (t *UnionType) Size() uintptr {
- if t.varlen {
+ if t.Varlen {
panic("union size is not statically known")
}
size := t.Options[0].Size()