summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-11-04 15:40:05 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:49 -0500
commit0f738f13f9a0105a0eb6506537f538a093446904 (patch)
treef785cd9cc9d4850c3e6a3dc9f0b14c4243d3c58b /source4
parent2eaf21afefe581d1031a22ef4ad701393ebeb939 (diff)
downloadsamba-0f738f13f9a0105a0eb6506537f538a093446904.tar.gz
samba-0f738f13f9a0105a0eb6506537f538a093446904.tar.bz2
samba-0f738f13f9a0105a0eb6506537f538a093446904.zip
r19553: Add check for correct API usage.
(This used to be commit 9e2206ae99ed6dc64788b71f1301bd188ab0026d)
Diffstat (limited to 'source4')
-rw-r--r--source4/pidl/lib/Parse/Pidl/Typelist.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Typelist.pm b/source4/pidl/lib/Parse/Pidl/Typelist.pm
index 4109e8032e..88f896632d 100644
--- a/source4/pidl/lib/Parse/Pidl/Typelist.pm
+++ b/source4/pidl/lib/Parse/Pidl/Typelist.pm
@@ -166,6 +166,8 @@ sub bitmap_type_fn($)
{
my $bitmap = shift;
+ $bitmap->{TYPE} eq "BITMAP" or die("not an enum");
+
if (has_property($bitmap, "bitmap8bit")) {
return "uint8";
} elsif (has_property($bitmap, "bitmap16bit")) {