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:
lahiker42 2010-04-18 16:37:58 +00:00
parent a7726296e0
commit 3a5f994e20

View File

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