bug0105.pp 312 B

123456789101112131415
  1. {$R+}
  2. { BOUND check error... I don't think this is a code generator error }
  3. { but an error because the type casting is not considered at all! }
  4. { Must be compiled with -Cr }
  5. Var
  6. Sel: Word;
  7. v: longint;
  8. Begin
  9. v:=$00ffffff;
  10. Sel:=word(v);
  11. writeln(sel);
  12. sel:=v;
  13. end.