Skip to content

Commit 72e251f

Browse files
committed
Architecture: silence -Wshift-op-parentheses
Silence a `-Wshift-op-parentheses` warning from clang.
1 parent af38cfa commit 72e251f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Architecture/RISCV/SoftwareSingleStep.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace {
1111
template <size_t Width>
1212
uintptr_t sext(uintptr_t value) {
1313
return ((value & (1 << Width)) ? ~((value & (1 << Width)) - 1) : 0) |
14-
(value & ((1 << Width + 1) - 1));
14+
(value & ((1 << (Width + 1)) - 1));
1515
}
1616
}
1717

0 commit comments

Comments
 (0)