Skip to content

Negative longs are treated as unsigned #12

Description

@JibbSmart

If I give mpz_t a negative long in the constructor, I get a positive mpz_t.
For now, using int instead has been fine.

Repro is quite simple:
var val = new mpz_t((long)-1);
Inspecting in the debugger gives: {18446744073709551615}

Thanks for your great work!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions