[MDEV-30592] Negative numbers are shifted left or right by 0 digits. The calculation result is incorrect. Created: 2023-02-07 Updated: 2023-02-08 Resolved: 2023-02-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 10.5.16, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Zeng | Assignee: | Alexander Barkov |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
The result is incorrect. It should be -1. |
| Comments |
| Comment by Alexander Barkov [ 2023-02-08 ] |
|
According to: https://mariadb.com/kb/en/bit-functions-and-operators/
Thus these operations cannot return -1. |