mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
fix for big endian machines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@27685 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d3974d45dc
commit
d9f8287ba9
2 changed files with 9 additions and 2 deletions
|
@ -1,4 +1,9 @@
|
|||
2009-01-13 Riccardo Mottola <rmottola@users.sf.net>
|
||||
2009-01-25 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/art/image.m: Fix for big-endiam machines
|
||||
|
||||
|
||||
2009-01-24 Riccardo Mottola <rmottola@users.sf.net>
|
||||
|
||||
* Source/art/image.m: Optimized and correct handling of 16 bit in _get_8_bits()
|
||||
|
||||
|
|
|
@ -55,10 +55,12 @@ not just discard the extra bits
|
|||
|
||||
/* if we are handling 16 bit values we optimize */
|
||||
|
||||
/* TODO: this code could be little/big-endian unsafe */
|
||||
|
||||
if (num_bits == 16)
|
||||
{
|
||||
#if (GS_WORDS_BIGENDIAN==0)
|
||||
ptr++;
|
||||
#endif
|
||||
v = *ptr;
|
||||
return v;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue