summaryrefslogtreecommitdiff
path: root/pidl/tests
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-11-25 14:31:34 +0100
committerStefan Metzmacher <metze@samba.org>2009-11-26 11:47:42 +0100
commita20e095b1fffb6d690609c924d03cafedbbce8f3 (patch)
treeb814489c4276d6ae2924fbd4a32eba7d32bf0a5f /pidl/tests
parentab1c92950f3cfdc8c52b772ecef23a5477f48f9d (diff)
downloadsamba-a20e095b1fffb6d690609c924d03cafedbbce8f3.tar.gz
samba-a20e095b1fffb6d690609c924d03cafedbbce8f3.tar.bz2
samba-a20e095b1fffb6d690609c924d03cafedbbce8f3.zip
pidl:Samba3/ClientNDR: $size can be 'foo / 2' so we need to add '(' and ')'
foo / 5 * sizeof(bar)' isn't the same as '(foo / 2) * sizeof(bar)'. metze
Diffstat (limited to 'pidl/tests')
-rwxr-xr-xpidl/tests/samba3-cli.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/pidl/tests/samba3-cli.pl b/pidl/tests/samba3-cli.pl
index 1820a69bb3..fcf1fb171b 100755
--- a/pidl/tests/samba3-cli.pl
+++ b/pidl/tests/samba3-cli.pl
@@ -301,4 +301,4 @@ my $e = { NAME => "foo", ORIGINAL => { FILE => "f", LINE => -1 },
LEVELS => [ { TYPE => "ARRAY", SIZE_IS => "mysize" }, { TYPE => "DATA", DATA_TYPE => "int" } ]};
$x->ParseOutputArgument($fn, $e);
-is($x->{res}, "memcpy(foo, r.out.foo, mysize * sizeof(*foo));\n");
+is($x->{res}, "memcpy(foo, r.out.foo, (mysize) * sizeof(*foo));\n");