Bug #9695 | signed/unsigned conversion depend on parameter order. a-b not the same as -b+a | ||
---|---|---|---|
Submitted: | 6 Apr 2005 20:48 | Modified: | 6 Apr 2005 23:51 |
Reporter: | Pavel Riha | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.21 | OS: | Linux (Linux) |
Assigned to: | CPU Architecture: | Any |
[6 Apr 2005 20:48]
Pavel Riha
[6 Apr 2005 23:51]
Hartmut Holzgraefe
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: the unary minus operator changes the singdness of its argument and has a higher operator precedence than the binary plus or minus -b -> result is signed even if b is unsigned -b+a is evaluated as (-b)+a so for the binary plus operator both operands are already signed