cnl icon indicating copy to clipboard operation
cnl copied to clipboard

Overflow issue during multiplication of negative wide_integers

Open nilskohl opened this issue 4 years ago • 1 comments

John,

for some reason I sometimes get overflow issues when multiplying two wide_integers. It may be related to the signs of the factors. The number of digits should be sufficient to represent the factors as well as the product.

Example here:

https://godbolt.org/z/3bh6zsz9M

Tested with 06c06cd5c2967f02aa668830bd971abfdbd99ad2

Let me know if I am missing something.

Cheers, Nils

nilskohl avatar Jul 02 '21 13:07 nilskohl

Hi Nils. That looks like a bug. It should be addressed by #892 which is ongoing.

johnmcfarlane avatar Jul 02 '21 14:07 johnmcfarlane