pidl: Make sure to cast whole expressions
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Sun, 26 Nov 2023 23:58:05 +0000 (12:58 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 30 Nov 2023 00:02:33 +0000 (00:02 +0000)
commite3f81fa71ee08f78b43f5b1817eb44d1c59bd40e
tree6a7e7e4584d908124113444cb55d1174744ed564
parent59b943252486fae732e516bae095728a14891f9c
pidl: Make sure to cast whole expressions

$cvar could be an expression such as ‘1 << 10’. In such cases this cast
presumably was intended to apply to the entire expression, not just to
the ‘1’.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm