[fpc-pascal] shift right operation with variables

Marco van de Voort marcov at stack.nl
Mon Aug 17 21:18:06 CEST 2015


In our previous episode, Peter said:
> I was going to comment that the 'bitmask example doesn't work, which it
> didn?t, but looks like its been recently fixed by adding the needed
> QWord cast on the '1's.
> 
> http://wiki.freepascal.org/Bit_manipulation
> 
> Qwords are certainly trickier to use the Dwords.

Actually dwords had the same problems before the introduction of int64.

Now Qword is the one type without a signed type larger than it.



More information about the fpc-pascal mailing list