Title: bpo-42882: Fix compiler warnings in MSVC by Fidget-Spinner · Pull Request #24440 · python/cpython · GitHub
Open Graph Title: bpo-42882: Fix compiler warnings in MSVC by Fidget-Spinner · Pull Request #24440 · python/cpython
X Title: bpo-42882: Fix compiler warnings in MSVC by Fidget-Spinner · Pull Request #24440 · python/cpython
Description: In MSVC, I get warnings during compilation: 1>\Documents\GitHub\cpython\Python\pystate.c(96,57): warning C4244: '=': conversion from 'int64_t' to 'Py_ssize_t', possible loss of data. It seems that runtime->unicode_ids.next_index is type Py_ssize_t, not int64_t. This was introduced in 44bf57a which only exists in 3.10, so no backport required. cc @vstinner https://bugs.python.org/issue42882
Open Graph Description: In MSVC, I get warnings during compilation: 1>\Documents\GitHub\cpython\Python\pystate.c(96,57): warning C4244: '=': conversion from 'int64_t' to 'Py_ssize_t', possible l...
X Description: In MSVC, I get warnings during compilation: 1>\Documents\GitHub\cpython\Python\pystate.c(96,57): warning C4244: '=': conversion from 'int64_t' to 'Py_...
Opengraph URL: https://github.com/python/cpython/pull/24440
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d8edb164-ef3b-5893-d126-164db89a8b4f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E64C:BA1AF:D8299:130FA6:696A392E |
| html-safe-nonce | 8f259ba69b01855ea97faf24a90acbe3c41b5165cbecfd2fefcba5d37b346462 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjRDOkJBMUFGOkQ4Mjk5OjEzMEZBNjo2OTZBMzkyRSIsInZpc2l0b3JfaWQiOiIzNTY0MTY3MDg0NjYxOTQ2NjcwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 99ceb93526d5b8aed994fb37ad65ecbb1c53afec0cbb1d66c54d004ad22cc390 |
| hovercard-subject-tag | pull_request:567756424 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/24440/files |
| twitter:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/28750310?s=400&v=4 |
| og:image:alt | In MSVC, I get warnings during compilation: 1>\Documents\GitHub\cpython\Python\pystate.c(96,57): warning C4244: '=': conversion from 'int64_t' to 'Py_ssize_t', possible l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 13581a31d51edf4a3aca179e10890a4d4f9b6d76 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width