[fpc-devel] Fix for SwapEndian

Michael Schnell mschnell at lumino.de
Tue Apr 29 16:23:07 CEST 2008

> I don't know whether it's normal, but it's compatible with Delphi. I 
> already fixed the same bug in r6752 (for swap() rather than for 
> swapendian()).
I think shr is supposed to work sign-extending with signed types. So it 
cant be used for endian swapping for signed types.


More information about the fpc-devel mailing list