Marc Glisse <marc.gli...@inria.fr> writes:

  Fixed. It was unhappy about (-13) << 2. I am a bit surprised it
  doesn't complain about (-13) >> 2 on the next line, we'll see if it
  ever becomes an issue.

This must be a compiler problem.  At least in C, shifting negative
integers is undefined.  It is a pity that it is, but the standard say
so.

I am less sure about C++.  Some googling did not provide a definitive
answer.

But if left shift of negative integers is undefined, surely right shift
is too!

-- 
Torbjörn
Please encrypt, key id 0xC8601622
_______________________________________________
gmp-devel mailing list
gmp-devel@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-devel

Reply via email to