8000 GH-101291: Low level opt-in API for pylong by markshannon · Pull Request #101685 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-101291: Low level opt-in API for pylong #101685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 21, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix static assert.
  • Loading branch information
markshannon committed May 13, 2023
commit 1d2650e980593b220c68175c4aeb8935a8ab5ac4
4 changes: 2 additions & 2 deletions Include/internal/pycore_long.h
75BF
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ PyAPI_FUNC(char*) _PyLong_FormatBytesWriter(
* we define them to the numbers in both places and then assert that
* they're the same.
*/
static_assert(SIGN_MASK == _PyLong_SIGN_MASK);
static_assert(NON_SIZE_BITS == _PyLong_NON_SIZE_BITS);
static_assert(SIGN_MASK == _PyLong_SIGN_MASK, "SIGN_MASK does not match _PyLong_SIGN_MASK");
static_assert(NON_SIZE_BITS == _PyLong_NON_SIZE_BITS, "NON_SIZE_BITS does not match _PyLong_NON_SIZE_BITS");

/* All *compact" values are guaranteed to fit into
* a Py_ssize_t with at least one bit to spare.
Expand Down
0