converting bytes operation to 64 bit? warning message for no reason.
Original Reporter info from Mantis: skalogryyz
-
Reporter name: Dmitry Boyarintsev
Original Reporter info from Mantis: skalogryyz
- Reporter name: Dmitry Boyarintsev
Description:
var
a, b, c : byte;
begin
a := 0;
b := 1;
c := 2;
a := a and (not (1 shl b)) or (c shl b); // this line gives a warning!
writeln(a);
end.
compile and get:
test.pas(7,30) Warning: Mixing signed expressions and longwords gives a 64bit result
Mantis conversion info:
- Mantis ID: 12236
- Version: 2.3.1