aboutsummaryrefslogtreecommitdiff
path: root/pkg/pdef/pdef.go
diff options
context:
space:
mode:
authorpg9182 <96569817+pg9182@users.noreply.github.com>2022-09-26 23:38:12 -0400
committerpg9182 <96569817+pg9182@users.noreply.github.com>2022-09-26 23:38:12 -0400
commitfea717c6aaa313efe573bd6a65c81693d4515dff (patch)
treeb5b9feac60e990008d74f32fb8affe1d26260afe /pkg/pdef/pdef.go
parent3f4bb7311725c4311913f0460d2ef86cb884db96 (diff)
downloadAtlas-fea717c6aaa313efe573bd6a65c81693d4515dff.tar.gz
Atlas-fea717c6aaa313efe573bd6a65c81693d4515dff.zip
pkg/pdef: Fix enum size
Diffstat (limited to 'pkg/pdef/pdef.go')
-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")