mirror of
https://github.com/protobuf-c/protobuf-c.git
synced 2024-12-28 14:48:18 +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;
|
return le;
|
||||||
#else
|
#else
|
||||||
return (le << 24) | (le >> 24)
|
return (le << 24) | (le >> 24)
|
||||||
| ((le >> 8) & 0xff0000)
|
| ((le >> 8) & 0xff00)
|
||||||
| ((le << 8) & 0xff00);
|
| ((le << 8) & 0xff0000);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
#define uint32_from_le uint32_to_le /* make the code more readable, i guess */
|
#define uint32_from_le uint32_to_le /* make the code more readable, i guess */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user