pidl/python: Calculate maximum integer values using a lookup table
commitc2f4e324d9c1ced2e1da859594ef67ae9f645919
authorAndrew Bartlett <abartlet@samba.org>
Thu, 27 Aug 2015 23:46:56 +0000 (28 11:46 +1200)
committerStefan Metzmacher <metze@samba.org>
Tue, 1 Sep 2015 12:01:23 +0000 (1 14:01 +0200)
treeb06c98162bc764b818b0223850b574628dff5223
parent88b27ebcc94da40783d01f5496bfcaad467e6048
pidl/python: Calculate maximum integer values using a lookup table

This avoids a << of 64 bits in the unused end of the conditional expression.

This was flagged by Coverity and the fix was suggested by metze.

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

Andrew Bartlett

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
pidl/lib/Parse/Pidl/Samba4/Python.pm