Commit d7e7f79
Fixes behaviour where int (and subtypes like bool) __sizeof__ under-reports true size as it did not take into account the size 1 `ob_digit` array for the zero int.
Co-authored-by: Mark Dickinson <[email protected]>
1 parent 9dee973 commit d7e7f79
File tree
3 files changed
+7
-2
lines changed- Lib/test
- Misc/NEWS.d/next/Core and Builtins
- Objects
3 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1322 | 1322 | | |
1323 | 1323 | | |
1324 | 1324 | | |
| 1325 | + | |
1325 | 1326 | | |
1326 | 1327 | | |
1327 | 1328 | | |
| |||
1459 | 1460 | | |
1460 | 1461 | | |
1461 | 1462 | | |
1462 | | - | |
| 1463 | + | |
1463 | 1464 | | |
1464 | 1465 | | |
1465 | 1466 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5879 | 5879 | | |
5880 | 5880 | | |
5881 | 5881 | | |
5882 | | - | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
| 5885 | + | |
5883 | 5886 | | |
5884 | 5887 | | |
5885 | 5888 | | |
| |||
0 commit comments