You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attribute _type_ of c_ulong returns L, which is correct following the format characters documentation; however, the documentation says it has 4 bytes size, but sizeof(c_ulong) returns 8 bytes.
>>>sizeof(c_ulong)
8>>>c_ulong._type_'L'
Also c_ulonglong is automatically casted to c_ulong:
Bug report
Bug description:
Attribute
_type_ofc_ulongreturnsL, which is correct following the format characters documentation; however, the documentation says it has 4 bytes size, butsizeof(c_ulong)returns 8 bytes.Also
c_ulonglongis automatically casted toc_ulong:, thus if
c_ulongwill have 4 bytes, will be there available a type of 8 bytes size?CPython versions tested on:
3.8
Operating systems tested on:
Linux
Linked PRs