Skip to content
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

./Include/cpython/pyatomic_std.h will not compile #116941

Closed
fuhsnn opened this issue Mar 18, 2024 · 3 comments
Closed

./Include/cpython/pyatomic_std.h will not compile #116941

fuhsnn opened this issue Mar 18, 2024 · 3 comments
Assignees
Labels
type-bug An unexpected behavior, bug, or error

Comments

@fuhsnn
Copy link

fuhsnn commented Mar 18, 2024

Bug report

Bug description:

These two functions have unclosed return expression.

static inline uint32_t
_Py_atomic_load_uint32_acquire(const uint32_t *obj)
{
_Py_USING_STD;
return atomic_load_explicit((const _Atomic(uint32_t)*)obj,
}
static inline Py_ssize_t
_Py_atomic_load_ssize_acquire(const Py_ssize_t *obj)
{
_Py_USING_STD;
return atomic_load_explicit((const _Atomic(Py_ssize_t)*)obj,
}

CPython versions tested on:

CPython main branch

Operating systems tested on:

Linux

Linked PRs

@fuhsnn fuhsnn added the type-bug An unexpected behavior, bug, or error label Mar 18, 2024
@colesbury
Copy link
Contributor

cc @DinoV

@colesbury colesbury self-assigned this Mar 18, 2024
@colesbury
Copy link
Contributor

I will put up a PR to fix this. Thanks for the report @fuhsnn

@fuhsnn
Copy link
Author

fuhsnn commented Mar 19, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

2 participants