We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a99a6f7 commit dc7e8adCopy full SHA for dc7e8ad
java/ql/src/Likely Bugs/Arithmetic/LShiftLargerThanTypeWidth.qhelp
@@ -6,9 +6,10 @@
6
7
<overview>
8
<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>.
+The maximum shift distance used for left-shift operations is determined by the promoted type of
+its left-hand side. When the promoted type is <code>int</code> only the lowest 5 bits of the
+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.
13
</p>
14
</overview>
15
<recommendation>
0 commit comments