Mpir.NET icon indicating copy to clipboard operation
Mpir.NET copied to clipboard

Negative longs are treated as unsigned

Open JibbSmart opened this issue 8 years ago • 0 comments

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!

JibbSmart avatar Sep 15 '17 04:09 JibbSmart