Fix the problem with pidl generating invalid C for enums. According
commit95311a220e7107ec8b3012d67d5efef57313a274
authorJeremy Allison <jra@samba.org>
Thu, 17 Sep 2009 18:08:42 +0000 (17 11:08 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 17 Sep 2009 18:11:06 +0000 (17 11:11 -0700)
tree0b355c3741ffdd906aff4e53c277d20e43fb1d9a
parentc2055de162b154efb1aef0d2977f860a01ffdbbc
Fix the problem with pidl generating invalid C for enums. According
to the C standard an enum is guarenteed to be an (int), which means
for 4 byte ints specifying a type of 0x80000000 is an invalid value.
The Solaris compiler complains about this. Fix by adding an (int)
cast in front of the value generation.
Jeremy.
pidl/lib/Parse/Pidl/Samba4/Header.pm