summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-09-17 11:27:51 -0700
committerJeremy Allison <jra@samba.org>2009-09-17 11:27:51 -0700
commit02dc4a1e4ef195c4a003336839a2cd9639623d8c (patch)
tree3f68f609f9947c8e49e5109e609271e49dfc4afa
parentb92c399d97d1b0a1242489f4af0bdfb79906ee29 (diff)
downloadsamba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.tar.gz
samba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.tar.bz2
samba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.zip
Ensure we enclose the enum values in brackets to make the cast work.
Jeremy.
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Header.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Header.pm b/pidl/lib/Parse/Pidl/Samba4/Header.pm
index bb497bb3a7..be1df4b118 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Header.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Header.pm
@@ -128,7 +128,9 @@ sub HeaderEnum($$;$)
if (@enum_els == 2) {
pidl $enum_els[0];
pidl "=(int)";
+ pidl "(";
pidl $enum_els[1];
+ pidl ")";
} else {
pidl $e;
}