mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix bogus byte swap code for big-endian hosts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32785 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
92ac6e50d4
commit
41bc49cedf
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-04-05 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||
|
||||
* Tests/base/coding/decoding.m: Fix bogus byte swap code for
|
||||
big-endian hosts.
|
||||
|
||||
2011-04-05 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSObject.m: Attempt to fixup C++ constructor/destructor
|
||||
|
|
|
@ -133,8 +133,9 @@ copyright 2004 Alexander Malmberg <alexander@malmberg.org>
|
|||
{
|
||||
uint8_t tmp = p[0];
|
||||
|
||||
p[0] = *++p;
|
||||
*p++ = tmp;
|
||||
p[0] = p[1];
|
||||
p[1] = tmp;
|
||||
p += 2;
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue