aboutsummaryrefslogtreecommitdiff
path: root/nexgb/xgbgen/field.go
diff options
context:
space:
mode:
authorAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:02 -0400
committerAndrew Gallant (Ocelot) <Andrew.Gallant@tufts.edu>2012-05-06 03:06:02 -0400
commitea30f1a0a718e5e86343cceac12104baab1bedca (patch)
treecb947c3533bf048336ba0e1c16a53a8c7f35e1ca /nexgb/xgbgen/field.go
parent014a0598bfe6d997a5dacda9eae4591df0b17826 (diff)
downloadhaven-ea30f1a0a718e5e86343cceac12104baab1bedca.tar.gz
haven-ea30f1a0a718e5e86343cceac12104baab1bedca.tar.xz
haven-ea30f1a0a718e5e86343cceac12104baab1bedca.zip
more bug fixes for the rest of the extensions
Diffstat (limited to 'nexgb/xgbgen/field.go')
-rw-r--r--nexgb/xgbgen/field.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/nexgb/xgbgen/field.go b/nexgb/xgbgen/field.go
index 725f3de..4452408 100644
--- a/nexgb/xgbgen/field.go
+++ b/nexgb/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),
}