Skip to content

[python] In Python 3, integers are long but in GDL they are int #639

@olebole

Description

@olebole

This is observed when testing #468, with Python 3.7.4.

function ARG_PASS_RETURN, arg
  return, arg
end

In Python 3, integers are long but in GDL they are int. So, the leading bits are ignored:

>>> import GDL
>>> arg = 2**45-1
>>> retval = GDL.function('arg_pass_return', arg)
% Compiled module: ARG_PASS_RETURN.
>>> print(retval)
-1

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