diff options
Diffstat (limited to 'source4/build/pidl')
-rw-r--r-- | source4/build/pidl/util.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm index 39f84843cb..48fd9469b8 100644 --- a/source4/build/pidl/util.pm +++ b/source4/build/pidl/util.pm @@ -331,12 +331,12 @@ sub type_align($) if (need_wire_pointer($e)) { return 4; } - if (my $ret = $type_alignments{$type}) { - return $ret; - } if (is_enum($type)) { - my $ret = type_align(get_enum($type)); + $type = enum_type_fn(get_enum($type)); + } + + if (my $ret = $type_alignments{$type}) { return $ret; } |