From 3a5f994e20b62065dccb5b766cd185281c5181c8 Mon Sep 17 00:00:00 2001 From: lahiker42 Date: Sun, 18 Apr 2010 16:37:58 +0000 Subject: [PATCH] bug fix from wyh2007. git-svn-id: https://protobuf-c.googlecode.com/svn/trunk@211 00440858-1255-0410-a3e6-75ea37f81c3a --- src/google/protobuf-c/protobuf-c-rpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/google/protobuf-c/protobuf-c-rpc.c b/src/google/protobuf-c/protobuf-c-rpc.c index 53b07ac..d900f97 100644 --- a/src/google/protobuf-c/protobuf-c-rpc.c +++ b/src/google/protobuf-c/protobuf-c-rpc.c @@ -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 */