[fpc-devel] Fix for SwapEndian
    Jonas Maebe 
    jonas.maebe at elis.ugent.be
       
    Tue Apr 29 16:52:07 CEST 2008
    
    
  
On 29 Apr 2008, at 16:23, Michael Schnell wrote:
>> 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.
The above statement may cause some confusion, so people who think that  
"shr" means "shift arithmetic right", please read the comment added to http://bugs.freepascal.org/view.php?id=10545
Jonas
    
    
More information about the fpc-devel
mailing list