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:
Wolfgang Lux 2011-04-05 18:47:06 +00:00
parent 92ac6e50d4
commit 41bc49cedf
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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;
}