Diagnostic 68: integer conversion resulted in a change of sign

Diagnostic 68: integer conversion resulted in a change of sign

Thank you for your interest in this diagnostic message. We are still in the process of documenting this specific diagnostic.

Please let us know of your experience with this diagnostic message by posting a comment below. Your interest in this diagnostic will help us prioritize the order we document diagnostics.

For more complete information about compiler optimizations, see our Optimization Notice.

1 comment

Top
anonymous's picture

Just want to know what this error means?? I get it on the 5th line of the following simple function, which works fine with G++

void bitprint(unsigned k)
{
unsigned i, mask;

mask = 1 << 31;

for(i=1; i<=32; i++)
{
cout << (((k & mask)==0) ? 0 : 1);
k <<= 1;
}

return;
}

Add a Comment

Have a technical question? Visit our forums. Have site or software product issues? Contact support.