mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-27 22:01:02 +08:00
bug fix from wyh2007.
git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@211 00440858-1255-0410-a3e6-75ea37f81c3a
This commit is contained in:
parent
a7726296e0
commit
3a5f994e20
@ -448,8 +448,8 @@ uint32_to_le (uint32_t le)
|
||||
return le;
|
||||
#else
|
||||
return (le << 24) | (le >> 24)
|
||||
| ((le >> 8) & 0xff0000)
|
||||
| ((le << 8) & 0xff00);
|
||||
| ((le >> 8) & 0xff00)
|
||||
| ((le << 8) & 0xff0000);
|
||||
#endif
|
||||
}
|
||||
#define uint32_from_le uint32_to_le /* make the code more readable, i guess */
|
||||
|
Loading…
x
Reference in New Issue
Block a user