summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2019-05-21 10:52:56 +0000
committerNoel Power <npower@samba.org>2019-05-29 10:10:23 +0000
commitf5af3cb21e2515096d0b21aabda238a1c8f3bab3 (patch)
tree28f440cfee80e3e1cfbd3865805777f942a71091 /source3/libads
parentfd3f37af927cd926431a5dbd8f966d8c8e772dae (diff)
downloadsamba-f5af3cb21e2515096d0b21aabda238a1c8f3bab3.tar.gz
s3/libads: cppcheck fix error: shiftTooManyBitsSigned: error
Squash 'Shifting signed 32-bit value by 31 bits is undefined behaviour' error Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/disp_sec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/disp_sec.c b/source3/libads/disp_sec.c
index 15c99b67176..0b5f117788a 100644
--- a/source3/libads/disp_sec.c
+++ b/source3/libads/disp_sec.c
@@ -73,7 +73,7 @@ static void ads_disp_perms(uint32_t type)
}
for (i = 0; i < 32; i++) {
- if (type & (1 << i)) {
+ if (type & ((uint32_t)1 << i)) {
for (j = 1; perms[j].str; j ++) {
if (perms[j].mask == (((unsigned) 1) << i)) {
printf("\n\t%s (0x%08x)", perms[j].str, perms[j].mask);