On 03/09/2021 08:02, LacaK via fpc-pascal wrote:
>> I have code in C like this:
>> E1 << E2
>> If E1 is of unsigned type then "The value of E1 << E2 is E1
>> left-shifted E2 bit positions; vacated bits are zero-filled. If E1 has
>> an unsigned type, the value of the result is E1 × 2^E2, reduced
After 35 years of Pascal experience I would urgently recommend NOT to trust any
automatic type conversion in the case of shift operators. Alteady Turbo Pascal
failed here on x386 architectures. Force input and output variables to a
certain data type before you use the shift operator.
Just my