1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Ensure we enclose the enum values in brackets to make the cast work.

Jeremy.
This commit is contained in:
Jeremy Allison 2009-09-17 11:27:51 -07:00
parent b92c399d97
commit 02dc4a1e4e

View File

@ -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;
}