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
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.063 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.