zuhu2195
(Mohammed Zuhaib)
30
I found a piece of code segment written for 16 bit atomic operation but type casting to 32 bit in pyatomic_std.h. atomic_load type case is of 32 bit, while obj is of 16 bit type.
static inline uint16_t
_Py_atomic_load_uint16(const uint16_t *obj)
{
_Py_USING_STD;
return atomic_load((const _Atomic(uint32_t)*)obj);
}
is this a mistake or was it deliberately added? I couldn’t find any other place where such a cast was done.