Show/Hide Toolbars

XSharp

Bitwise-or operator used on a sign-extended operand; consider casting to a smaller unsigned type first

 

The compiler implicitly widened and sign-extended a variable, and then used the resulting value in a bitwise OR operation. This can result in unexpected behavior.

 

The following sample generates XS0675:

 

 

// XS0675.prg  
// compile with: /W:3