[llvm-bugs] [Bug 47070] New: Bit-wise operators should not be used where logical operators should be used.( & should be &&)(llvm-project/clang-tools-extra/clangd/RIFF.cpp:line 32)
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 9 19:24:52 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=47070
Bug ID: 47070
Summary: Bit-wise operators should not be used where logical
operators should be used.( & should be
&&)(llvm-project/clang-tools-extra/clangd/RIFF.cpp:lin
e 32)
Product: clang-tools-extra
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: clangd
Assignee: unassignedclangbugs at nondot.org
Reporter: info at ustchcs.com
CC: llvm-bugs at lists.llvm.org
Bit-wise operators should not be used where logical operators should be used.(
& should be &&)
commit e3546c78cabfbf670391a57766872f0a8e28a423
llvm-project/clang-tools-extra/clangd/RIFF.cpp:line 32
32 if (Len % 2 & !Stream.empty()) { // Skip padding byte.
33 if (Stream.front())
34 return makeError("nonzero padding byte");
35 Stream = Stream.drop_front();
36 }
37 return std::move(C);
38 }
Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-5.2: Bit-wise operators should not be used where logical operators
should be used.( & should be &&))
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200810/0cfef2cd/attachment-0001.html>
More information about the llvm-bugs
mailing list