1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r4858: a better fix for alignment of enumerated types (I'm not even sure why

the last fix worked at all)
(This used to be commit 99cef2e5a0)
This commit is contained in:
Andrew Tridgell 2005-01-19 21:38:27 +00:00 committed by Gerald (Jerry) Carter
parent f19049c9c9
commit 9d79025e5b

View File

@ -331,12 +331,12 @@ sub type_align($)
if (need_wire_pointer($e)) { if (need_wire_pointer($e)) {
return 4; return 4;
} }
if (my $ret = $type_alignments{$type}) {
return $ret;
}
if (is_enum($type)) { 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; return $ret;
} }