Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

BUG: Fix warning "differs in levels of indirection" in npy_atomic.h with MSVC#27574

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 1 commit intonumpy:maintenance/2.1.xfromcharris:backport-27557
Oct 16, 2024

Conversation

charris
Copy link
Member

Backport of#27557.

This pr is tofix#27547
Fixed a warning in MSVC (C4047) that occurs due to a mismatch in levels of
indirection between 'void *' and 'volatile uint64_t'. The issue arises in the
MSC_ATOMICS section where a return statement in npy_atomic.h attempts to
return a uint64_t value, but the function expects a void pointer.

The fix involves casting the uint64_t result back to a void pointer using
(uintptr_t) to ensure compatibility and eliminate the warning.

Tested on MSVC 19.29 with numpy 2.1.2 to verify that the warning no longer
appears during compilation.

  • Fix pointer indirection warning (C4047) in npy_atomic.h for MSVC

  • Fix pointer indirection warning (C4047) in npy_atomic.h for MSVC

  • Fix atomic pointer loading with proper type casting for various architectures

  • Update numpy/_core/src/common/npy_atomic.h

  • Update numpy/_core/src/common/npy_atomic.h

  • Update numpy/_core/src/common/npy_atomic.h

  • Update numpy/_core/src/common/npy_atomic.h

  • Update numpy/_core/src/common/npy_atomic.h


…ith MSVC (numpy#27557)* Fix pointer indirection warning (C4047) in npy_atomic.h for MSVC* Fix pointer indirection warning (C4047) in npy_atomic.h for MSVC* Fix atomic pointer loading with proper type casting for various architectures* Update numpy/_core/src/common/npy_atomic.hCo-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>* Update numpy/_core/src/common/npy_atomic.hCo-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>* Update numpy/_core/src/common/npy_atomic.hCo-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>* Update numpy/_core/src/common/npy_atomic.hCo-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>* Update numpy/_core/src/common/npy_atomic.hCo-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>---------Co-authored-by: Nathan Goldbaum <nathan.goldbaum@gmail.com>
@charrischarris added 00 - Bug 08 - BackportUsed to tag backport PRs labelsOct 16, 2024
@charrischarris added this to the2.1.3 release milestoneOct 16, 2024
@charrischarris merged commit00cdaac intonumpy:maintenance/2.1.xOct 16, 2024
65 checks passed
@charrischarris deleted the backport-27557 branchOctober 16, 2024 14:24
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
00 - Bug08 - BackportUsed to tag backport PRs
Projects
None yet
Milestone
2.1.3 release
Development

Successfully merging this pull request may close these issues.

2 participants
@charris@nocoding03

[8]ページ先頭

©2009-2025 Movatter.jp