sercantutar / infint

Arbitrary-Precision Integer Arithmetic
http://sercantutar.github.io/infint/
201 stars 49 forks source link

InfInt incorrectly represents INT_MIN when constructed directly #6

Closed maihde closed 7 years ago

maihde commented 9 years ago

INT_MIN will be incorrectly represented if you do InfInt(INT_MIN) because the constructor inverts the sign which causes an overflow. A patch has provided via a pull request.

sercantutar commented 7 years ago

solved this with latest commit