aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg/pdef/pdef.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/pdef/pdef.go b/pkg/pdef/pdef.go
index e5738ba..fe4a08b 100644
--- a/pkg/pdef/pdef.go
+++ b/pkg/pdef/pdef.go
@@ -37,7 +37,7 @@ func (p Pdef) TypeSize(t TypeInfo) int {
return len(v) * p.TypeSize(t.MappedArray.Type)
}
case t.Enum != nil:
- return 4 // uint8
+ return 1 // uint8
case t.Struct != nil:
if fs, ok := p.Struct[t.Struct.Name]; !ok {
panic("undefined struct in pdef")