I recently encountered a strange behavior using correct-shift operators. The following program: #include & lt; Cstdio & gt; # Include & lt; Cstdlib & gt; # Include & lt; Iostream & gt; # Include & lt; Stdint.h & gt; Int foo (int a, int b) {back to a & gt; & Gt; B; } Int bar (uint64_t a, int b) {single & gt; & Gt; B; } Int main (Int arc, four ** argv) {std :: cout & lt; & Lt; "Foo (1, 32):" & lt; & Lt; Fu (1, 32) & lt; & Lt; Std :: endl; Std :: cout & lt; & Lt; "Bar (1, 32):" & lt; & Lt; Bar (1, 32) & lt; & Lt; Std :: endl; Std :: cout & lt; & Lt; "1>> 32:" & lt; & Lt; (1> 32) & lt; & Lt; Std :: endl; // alert here std :: cout & lt; & Lt; "(Int) 1>> (Int) 32:" & lt; & Lt; ((Int) 1> (int) 32) & Lt; Std :: endl; // warnings return here EXIT_SUCCESS; } should be output: foo (1, 32...