[fpc-pascal] Re: Lo

Carsten Bager carsten at beas.dk
Thu Jan 13 11:27:06 CET 2011


 
> Well, you should probably mention that this replacement solution is not
> portable to big endian platforms / targets.
> 
> Tomas

If one want to write portable code, what would be best, or would both work on a big endian 
platform.

Carsten

var 
  b:byte;
  i:LongInt;

b := i and 255;
b:= i mod 256;



More information about the fpc-pascal mailing list