Skip to content

modffi int broken in 32 bit architectures, in big endian architectures, and with unsigned values #7269

@abiliojr

Description

@abiliojr

While trying to use modffi, I found the following issues:

  • integers of 8 and 16 bits don't work on big endian
  • integers of 64 bits don't work on 32 bits architectures
  • unsigned returns were converted to signed python integers

A proposed fix for all these issues was submitted as PR #7268

Please see this zip for the code used for testing while preparing the PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions