aboutsummaryrefslogtreecommitdiffstats
path: root/sys/decl.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-01-18 13:07:21 +0100
committerAndrey Konovalov <andreyknvl@google.com>2017-01-18 19:16:11 +0100
commit023345d694751261b64f84fde0820982f1e3c2fa (patch)
tree0fda9eea2ee208f54daa1e8ef81fe0ed068568c8 /sys/decl.go
parent109c58ef682799fc7e92d7a74a9c3073f1ccd0ec (diff)
prog, sys: correctly calculate size of varlen structs
Diffstat (limited to 'sys/decl.go')
-rw-r--r--sys/decl.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/decl.go b/sys/decl.go
index 94d05e0c3..08df93dd2 100644
--- a/sys/decl.go
+++ b/sys/decl.go
@@ -293,6 +293,7 @@ func (t *PtrType) Align() uintptr {
type StructType struct {
TypeCommon
Fields []Type
+ Varlen bool
padded bool
packed bool
align uintptr