summaryrefslogtreecommitdiff
path: root/xgbgen/field.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <[email protected]>2012-05-06 03:06:02 -0400
committerAndrew Gallant (Ocelot) <[email protected]>2012-05-06 03:06:02 -0400
commitb081fc803a2b33daa0a9f5281c7a84e70df95068 (patch)
treeae80dd2f6bbd6a57074baa0929334b3b15f0acb4 /xgbgen/field.go
parent864eb4f165c20b07fd6ef2a2993aaa39a9714a1a (diff)
more bug fixes for the rest of the extensions
Diffstat (limited to 'xgbgen/field.go')
-rw-r--r--xgbgen/field.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/xgbgen/field.go b/xgbgen/field.go
index 725f3de..4452408 100644
--- a/xgbgen/field.go
+++ b/xgbgen/field.go
@@ -142,8 +142,7 @@ func (f *ListField) Length() Size {
// special function written in go_struct.go to compute the size (since the
// size in this case can only be computed recursively).
func (f *ListField) Size() Size {
- simpleLen := &Function{
- Name: "pad",
+ simpleLen := &Padding{
Expr: newBinaryOp("*", f.Length().Expression, f.Type.Size().Expression),
}