We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 961b70f commit 4e7f657Copy full SHA for 4e7f657
numpy/_core/src/common/npy_atomic.h
@@ -53,15 +53,15 @@ npy_atomic_load_ptr(const void *obj) {
53
#elif defined(MSC_ATOMICS)
54
#if SIZEOF_VOID_P == 8
55
#if defined(_M_X64) || defined(_M_IX86)
56
- return *(volatile uint64_t *)obj;
+ return (void *)*(volatile uint64_t *)obj;
57
#elif defined(_M_ARM64)
58
- return (uint64_t)__ldar64((unsigned __int64 volatile *)obj);
+ return (void *)__ldar64((unsigned __int64 volatile *)obj);
59
#endif
60
#else
61
62
- return *(volatile uint32_t *)obj;
+ return (void *)*(volatile uint32_t *)obj;
63
64
- return (uint32_t)__ldar32((unsigned __int32 volatile *)obj);
+ return (void *)__ldar32((unsigned __int32 volatile *)obj);
65
66
67
#elif defined(GCC_ATOMICS)
0 commit comments