You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Left & Right Shifting supports only `int`, `uint`, `long`, `ulong`. If you perform shifting on other integer types, the leftoperand is converted as `int`
37
37
38
38
> [!NOTE]
39
-
> If shift count exceeds the bit width or is even negative, the count is determined by
39
+
> If shift count exceeds the bit width or it's a negative integer, the count is determined by
40
40
> - if leftoperand is `int` or `uint`: `count = count & 0b_1_1111`
41
41
> - if leftoperand is `long` or `ulong`: `count = count & 0b_11_1111`
42
42
43
43
> [!NOTE]
44
-
> Left shifting might discard sign of the number when it's signed
44
+
> Left shifting might discard sign of the number when shift count is greater than 0
0 commit comments