mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +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
e662ca46d2
commit
387687ccbf
2 changed files with 8 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue