From 02dc4a1e4ef195c4a003336839a2cd9639623d8c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 17 Sep 2009 11:27:51 -0700 Subject: [PATCH] Ensure we enclose the enum values in brackets to make the cast work. Jeremy. --- pidl/lib/Parse/Pidl/Samba4/Header.pm | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1