[CLN-list] Question about compiler warning
Jan Rheinländer
jrheinlaender at gmx.de
Sun Feb 25 15:53:41 CET 2018
Hi,
in integer/gcd/cl_I_gcd_aux2.cc there are the lines (starting at line 76):
void partial_gcd (uintDD z1, uintDD z2, partial_gcd_result* erg)
{
var uintD x1 = 1;
...
line 100:
if (qx > (uintDD)(~x1)) {
The compiler tells me that after taking the bitwise complement of x1,
the (uintDD) cast will extend x1 by adding zeros, which is probably not
the intention?
See
https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-1-c4319
Regards,
Jan Rheinländer
More information about the CLN-list
mailing list