Skip to content

Commit dc7e8ad

Browse files
committed
Java: Reword help according to review comment.
1 parent a99a6f7 commit dc7e8ad

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

java/ql/src/Likely Bugs/Arithmetic/LShiftLargerThanTypeWidth.qhelp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66

77
<overview>
88
<p>
9-
The left shift operator only uses the lowest 5 bits of its right-hand side
10-
when the promoted type of its left-hand side is <code>int</code> and the
11-
lowest 6 bits when the type is <code>long</code>.
9+
The maximum shift distance used for left-shift operations is determined by the promoted type of
10+
its left-hand side. When the promoted type is <code>int</code> only the lowest 5 bits of the
11+
right-hand side are used as the shift distance. When the promoted type is <code>long</code>
12+
the lowest 6 bits of the right-hand side are used.
1213
</p>
1314
</overview>
1415
<recommendation>

0 commit comments

Comments
 (0)