git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77e2d2f
)
pidl:NDR/Parser: $size can be 'foo / 2' so we need to add '(' and ')'
author
Stefan Metzmacher
<metze@samba.org>
Wed, 25 Nov 2009 13:21:32 +0000
(14:21 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 26 Nov 2009 10:47:41 +0000
(11:47 +0100)
foo / 5 * sizeof(bar)' isn't the same as
'(foo / 2) * sizeof(bar)'.
metze
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index d598989fad202a0889985ec688b5d0486fc6d1de..af28bda1082e0a44bb902b904c42968811a32984 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@
-2140,7
+2140,7
@@
sub AllocateArrayLevel($$$$$$)
$self->pidl("}");
if (grep(/in/,@{$e->{DIRECTION}}) and
grep(/out/,@{$e->{DIRECTION}})) {
- $self->pidl("memcpy(r->out.$e->{NAME}, r->in.$e->{NAME},
$size
* sizeof(*r->in.$e->{NAME}));");
+ $self->pidl("memcpy(r->out.$e->{NAME}, r->in.$e->{NAME},
($size)
* sizeof(*r->in.$e->{NAME}));");
}
return;
}