From: Noel Power Date: Wed, 22 May 2019 11:24:43 +0000 (+0000) Subject: s4/torture/raw: cppcheck: Fix shiftTooManyBitsSigned error X-Git-Tag: ldb-2.0.5~507 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bb00a7e018800c6d70d9d0937183961c7af970b9;p=thirdparty%2Fsamba.git s4/torture/raw: cppcheck: Fix shiftTooManyBitsSigned error Fix source4/torture/raw/notify.c:831: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:838: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:849: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:861: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:869: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:882: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:892: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:903: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:914: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:929: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:941: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:951: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:961: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:972: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] source4/torture/raw/notify.c:982: error: shiftTooManyBitsSigned: Shifting signed 32-bit value by 31 bits is undefined behaviour <--[cppcheck] Signed-off-by: Noel Power Reviewed-by: Andreas Schneider --- diff --git a/source4/torture/raw/notify.c b/source4/torture/raw/notify.c index fa32c6b5e21..881ad6b71cc 100644 --- a/source4/torture/raw/notify.c +++ b/source4/torture/raw/notify.c @@ -768,7 +768,7 @@ static bool test_notify_mask(struct torture_context *tctx, fnum = io.ntcreatex.out.file.fnum; \ setup \ notify.nttrans.in.file.fnum = fnum; \ - notify.nttrans.in.completion_filter = (1<tree, ¬ify); \ smb_raw_chkpath(cli->tree, &chkpath); \ op \ @@ -817,7 +817,7 @@ static bool test_notify_mask(struct torture_context *tctx, notify.nttrans.in.completion_filter, \ notify.nttrans.out.changes[0].name.s));\ } \ - mask |= (1<