Title: Fix positive `PyInt` converted to negative `BigInteger` by lostmsu · Pull Request #1993 · pythonnet/pythonnet · GitHub
Open Graph Title: Fix positive `PyInt` converted to negative `BigInteger` by lostmsu · Pull Request #1993 · pythonnet/pythonnet
X Title: Fix positive `PyInt` converted to negative `BigInteger` by lostmsu · Pull Request #1993 · pythonnet/pythonnet
Description: What does this implement/fix? Explain your changes. BigInteger(byte[]) constructor uses the sign bit in the first byte. Since we handle the sign separately, the fix is to prepend a zero byte to the number, which does not change it, but ensures sign bit is zero. Does this close any currently open issues? fixes #1990 Checklist Check all those that are applicable and complete. Make sure to include one or more tests for your change Updated the CHANGELOG
Open Graph Description: What does this implement/fix? Explain your changes. BigInteger(byte[]) constructor uses the sign bit in the first byte. Since we handle the sign separately, the fix is to prepend a zero byte to the...
X Description: What does this implement/fix? Explain your changes. BigInteger(byte[]) constructor uses the sign bit in the first byte. Since we handle the sign separately, the fix is to prepend a zero byte to the...
Opengraph URL: https://github.com/pythonnet/pythonnet/pull/1993
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d2f954d8-0ba7-52d8-054b-f3f5899550c9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C734:287A4D:41DEA85:5A0DD9B:69709CE5 |
| html-safe-nonce | c4c54ce059d124e4b70a9f4ee93428e761017fbaa92e18bb8c84544a049ab62f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzM0OjI4N0E0RDo0MURFQTg1OjVBMEREOUI6Njk3MDlDRTUiLCJ2aXNpdG9yX2lkIjoiNjMzODQ3NTExNzU4NzI0MjIxMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 47c3c8882d8afe9bd0b7d6dc7431eb54474fabff2dcf4ae4be1685ec8939ed78 |
| hovercard-subject-tag | pull_request:1103704960 |
| 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/pythonnet/pythonnet/pull/1993/files |
| twitter:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/239520?s=400&v=4 |
| og:image:alt | What does this implement/fix? Explain your changes. BigInteger(byte[]) constructor uses the sign bit in the first byte. Since we handle the sign separately, the fix is to prepend a zero byte to the... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9920a62ba22d06470388e2904804fb7e5ec51c9e35f81784e9191394c74b2bd2 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/pythonnet/pythonnet git https://github.com/pythonnet/pythonnet.git |
| octolytics-dimension-user_id | 6050430 |
| octolytics-dimension-user_login | pythonnet |
| octolytics-dimension-repository_id | 14748123 |
| octolytics-dimension-repository_nwo | pythonnet/pythonnet |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14748123 |
| octolytics-dimension-repository_network_root_nwo | pythonnet/pythonnet |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d6181066430cc06553c8396ca201e194ae33cb9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width