pidl: Parenthesize expression to be cast
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 10 May 2021 22:27:33 +0000 (10:27 +1200)
committerJoseph Sutton <jsutton@samba.org>
Sun, 1 Oct 2023 22:45:38 +0000 (22:45 +0000)
commit773c36baa0ded91a75a046f6766acc3a8e45221c
treebe92118cee4da93a75818baccb522ffaf6592af9
parent26e40717aa02106bd9a9b86157ba4cc25bfa98b7
pidl: Parenthesize expression to be cast

We must parenthesize each expression that is to be cast to a specific
type, otherwise the cast will apply to only part of the full expression.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=9914

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