hal_endian.h error in swap macro
Brian Murphy
brm@tt.dk
Thu May 15 11:21:00 GMT 2003
The attached patch fixes a problem with the hal swap macro CYG_SWAP16 which
neither masks the input values nor typecasts to a 16 bit type on return.
I have also
made the same change to the 32 bit swap macro.
Why are the other set of endianness macros (with the network code) not
written
in terms of the hal macros? It would save some confusion I think.
/Brian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: hal_endian.patch
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20030515/5e0874cf/attachment.ksh>
More information about the Ecos-patches
mailing list