> 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. -Michael