| commit | 50f4e9c3c3e5115b346f361de1374837c990f14b | [log] [tgz] |
|---|---|---|
| author | Hannes Domani <ssbssa@yahoo.de> | Tue Jun 11 20:32:59 2024 +0200 |
| committer | Hannes Domani <ssbssa@yahoo.de> | Tue Jun 11 20:36:34 2024 +0200 |
| tree | 002a6fabba8f02b8ea3c5ae11914e06d301d77cb | |
| parent | d17731525424349d7e63b517acf9f45114979fbb [diff] |
Fix too-large or negative right shift of negative numbers As seen in these test failures: print -1 >> -1 warning: right shift count is negative $N = 0 (gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -1 >> -1 print -4 >> -2 warning: right shift count is negative $N = 0 (gdb) FAIL: gdb.base/bitshift.exp: lang=c: neg lhs/rhs: print -4 >> -2 Fixed by restoring the logic from before the switch to gmp. Approved-By: Tom Tromey <tom@tromey.com>