summaryrefslogtreecommitdiff
path: root/source4/pidl/lib/Parse/Pidl/Samba4/NDR
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-07-21 12:47:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-07-21 12:47:08 +0200
commit24b03e1080b5acbe8086bbc22091ecb1af642619 (patch)
tree192d6c4f072d6c3b0d19ebc8fb06062f8bf8bafa /source4/pidl/lib/Parse/Pidl/Samba4/NDR
parentecc13c3b1f203e5f6b3d7d5bfc50ba2ec2a4b9c8 (diff)
downloadsamba-24b03e1080b5acbe8086bbc22091ecb1af642619.tar.gz
samba-24b03e1080b5acbe8086bbc22091ecb1af642619.tar.bz2
samba-24b03e1080b5acbe8086bbc22091ecb1af642619.zip
Properly cast array length in print functions.
(This used to be commit f321240fa91fa19c1131f119c42f64897d220682)
Diffstat (limited to 'source4/pidl/lib/Parse/Pidl/Samba4/NDR')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
index 0d1806a0fa..a0de1f127a 100644
--- a/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
+++ b/source4/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
@@ -770,7 +770,7 @@ sub ParseElementPrint($$$$)
} else {
my $counter = "cntr_$e->{NAME}_$l->{LEVEL_INDEX}";
- $self->pidl("ndr->print(ndr, \"\%s: ARRAY(\%d)\", \"$e->{NAME}\", $length);");
+ $self->pidl("ndr->print(ndr, \"\%s: ARRAY(\%d)\", \"$e->{NAME}\", (int)$length);");
$self->pidl("ndr->depth++;");
$self->pidl("for ($counter=0;$counter<$length;$counter++) {");
$self->indent;