diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/build/pidl/parser.pm | 3 | ||||
-rw-r--r-- | source4/build/pidl/util.pm | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/source4/build/pidl/parser.pm b/source4/build/pidl/parser.pm index 5a39903b8f..e227d0d374 100644 --- a/source4/build/pidl/parser.pm +++ b/source4/build/pidl/parser.pm @@ -80,8 +80,7 @@ sub fn_prefix($) sub struct_alignment($) { my $s = shift; - # why do we need a minimum alignment of 4 ?? - my $align = 4; + my $align = 1; for my $e (@{$s->{ELEMENTS}}) { if ($align < util::type_align($e)) { $align = util::type_align($e); diff --git a/source4/build/pidl/util.pm b/source4/build/pidl/util.pm index 67f97e647e..244a78af09 100644 --- a/source4/build/pidl/util.pm +++ b/source4/build/pidl/util.pm @@ -214,7 +214,7 @@ sub type_align($) return 2, if ($type eq "wchar_t"); return 4, if ($type eq "DATA_BLOB"); - return 0; + return 4; } # this is used to determine if the ndr push/pull functions will need |