Title: Fix compiler warnings in MSVC for winreg.c by Fidget-Spinner · Pull Request #24441 · python/cpython · GitHub
Open Graph Title: Fix compiler warnings in MSVC for winreg.c by Fidget-Spinner · Pull Request #24441 · python/cpython
X Title: Fix compiler warnings in MSVC for winreg.c by Fidget-Spinner · Pull Request #24441 · python/cpython
Description: During compilation, I get a warning: 1>\Documents\GitHub\cpython\PC\winreg.c(683,21): warning C4018: '<': signed/unsigned mismatch. Caused by the line assert(len < size); because len is type Py_ssize_t (signed) and size is type DWORD (unsigned). We can cast len to unsigned safely to silence the warning (which is what the compiler already does implicitly), because there is already a check for assert(len >= 0); above.
Open Graph Description: During compilation, I get a warning: 1>\Documents\GitHub\cpython\PC\winreg.c(683,21): warning C4018: '<': signed/unsigned mismatch. Caused by the line assert(len < size); because l...
X Description: During compilation, I get a warning: 1>\Documents\GitHub\cpython\PC\winreg.c(683,21): warning C4018: '<': signed/unsigned mismatch. Caused by the line assert(len &...
Opengraph URL: https://github.com/python/cpython/pull/24441
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f527237d-aee0-e846-3be0-4db3aece9efa |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2A4:25C52D:C63F2A:1007C1A:696B283D |
| html-safe-nonce | 2ece1c259592d0a02d0ac3d41dc8a6a108ab7dd42b44a09dccab73969685debc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE0OjI1QzUyRDpDNjNGMkE6MTAwN0MxQTo2OTZCMjgzRCIsInZpc2l0b3JfaWQiOiIxODkyMDA1MDA2Mjk0MDY3MjYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 75ae325f0fe810bcb0bdb48d16893e9dfb85083c3cb7a9a28c0de4c733fe222b |
| hovercard-subject-tag | pull_request:567760980 |
| 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/24441/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 | During compilation, I get a warning: 1>\Documents\GitHub\cpython\PC\winreg.c(683,21): warning C4018: '<': signed/unsigned mismatch. Caused by the line assert(len < size); because l... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| 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 | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width