Skip to content

Windows support #10

@isuruf

Description

@isuruf

I ran the test suite and for each python version, the error is different.
python 3.6

>python test/test.py 
test_fmpz...

python 3.7

>python test/test.py 
Traceback (most recent call last):
  File "test/test.py", line 439, in <module>
    sys.stdout.write("test_fmpz..."); test_fmpz(); print("OK")
  File "test/test.py", line 19, in test_fmpz
    assert flint.fmpz() == flint.fmpz(0)
AssertionError

python 3.8

>python test/test.py 
Traceback (most recent call last):
  File "test/test.py", line 439, in <module>
    sys.stdout.write("test_fmpz..."); test_fmpz(); print("OK")
  File "test/test.py", line 26, in test_fmpz
    assert ltype(s) + rtype(t) == s + t
AssertionError

One possible issue could be that, long is used everywhere instead of long long. For example, PyLong_AsLongLongAndOverflow should be used instead of PyLong_AsLongAndOverflow at https://github.com/fredrik-johansson/python-flint/blob/master/src/fmpz.pyx#L4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions