We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
-Wshift-op-parentheses
1 parent af38cfa commit 72e251fCopy full SHA for 72e251f
Sources/Architecture/RISCV/SoftwareSingleStep.cpp
@@ -11,7 +11,7 @@ namespace {
11
template <size_t Width>
12
uintptr_t sext(uintptr_t value) {
13
return ((value & (1 << Width)) ? ~((value & (1 << Width)) - 1) : 0) |
14
- (value & ((1 << Width + 1) - 1));
+ (value & ((1 << (Width + 1)) - 1));
15
}
16
17
0 commit comments