conditional_ace.idl: Fix undefined shift
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 26 Nov 2023 23:55:51 +0000 (12:55 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Nov 2023 00:02:33 +0000 (00:02 +0000)
commit59b943252486fae732e516bae095728a14891f9c
treedeee501fc3cce25d13c9b655fc61d6f18f0f50bc
parent3da132a8dfb9671075b38d378a3df2b58fc09931
conditional_ace.idl: Fix undefined shift

If ‘int’ is a 32‐bit type, then 1 << 31 cannot be represented in an
‘int’, and this shift will invoke undefined behaviour.

We have got away with this so far because of a Pidl bug that changed the
expression to ‘(uint32_t)1 << 31’, which is valid. But that bug is about
to be fixed.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
librpc/idl/conditional_ace.idl