diff options
author | Jeremy Allison <jra@samba.org> | 2009-09-17 11:27:51 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2009-09-17 11:27:51 -0700 |
commit | 02dc4a1e4ef195c4a003336839a2cd9639623d8c (patch) | |
tree | 3f68f609f9947c8e49e5109e609271e49dfc4afa /pidl/lib/Parse/Pidl/Samba4 | |
parent | b92c399d97d1b0a1242489f4af0bdfb79906ee29 (diff) | |
download | samba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.tar.gz samba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.tar.bz2 samba-02dc4a1e4ef195c4a003336839a2cd9639623d8c.zip |
Ensure we enclose the enum values in brackets to make the cast work.
Jeremy.
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Header.pm | 2 |
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; } |