From 1f5e813fe737d46b833b4850d83c8d3f30c203c0 Mon Sep 17 00:00:00 2001 From: Robert Edmonds Date: Thu, 21 Nov 2013 17:13:11 -0500 Subject: [PATCH] protobuf-c/protobuf-c.c: the no_unpacking_needed case only executes on little endian --- protobuf-c/protobuf-c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/protobuf-c/protobuf-c.c b/protobuf-c/protobuf-c.c index 5912a87..e8f02ed 100644 --- a/protobuf-c/protobuf-c.c +++ b/protobuf-c/protobuf-c.c @@ -1994,10 +1994,12 @@ parse_packed_repeated_member (ScannedMember *scanned_member, *p_n += count; return TRUE; +#if !defined(WORDS_BIGENDIAN) no_unpacking_needed: memcpy (array, at, count * siz); *p_n += count; return TRUE; +#endif } static protobuf_c_boolean