Commit a728080
authored
pythongh-156348: Fix the value of curses.ERR (pythonGH-156349)
Setting the module constants with an unsigned conversion, needed for the
chtype constants that can set bits beyond a 32-bit long, turned ERR from -1
into 18446744073709551615. Set ERR and OK with a signed conversion.1 parent fe8ace3 commit a728080
2 files changed
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2984 | 2984 | | |
2985 | 2985 | | |
2986 | 2986 | | |
| 2987 | + | |
| 2988 | + | |
| 2989 | + | |
| 2990 | + | |
| 2991 | + | |
2987 | 2992 | | |
2988 | 2993 | | |
2989 | 2994 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6657 | 6657 | | |
6658 | 6658 | | |
6659 | 6659 | | |
6660 | | - | |
6661 | | - | |
6662 | | - | |
6663 | | - | |
6664 | | - | |
| 6660 | + | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
6665 | 6664 | | |
6666 | 6665 | | |
6667 | 6666 | | |
| |||
9419 | 9418 | | |
9420 | 9419 | | |
9421 | 9420 | | |
9422 | | - | |
9423 | | - | |
| 9421 | + | |
| 9422 | + | |
| 9423 | + | |
| 9424 | + | |
| 9425 | + | |
| 9426 | + | |
| 9427 | + | |
| 9428 | + | |
| 9429 | + | |
| 9430 | + | |
| 9431 | + | |
| 9432 | + | |
| 9433 | + | |
| 9434 | + | |
| 9435 | + | |
| 9436 | + | |
| 9437 | + | |
| 9438 | + | |
9424 | 9439 | | |
9425 | 9440 | | |
9426 | 9441 | | |
| |||
0 commit comments