Skip to contentSkip to conversation

arm: fix compile on bigendian host

PATCH Applied Alexey Kardashevskiy 2 participants 2 messages Jan 10, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: fix compile on bigendian host

---

Peter, is not it what you really wanted? :)

---
 target-arm/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
target-arm/cpu.h +1 -1
index f1307eb..198b6b8 100644
@@ -73,7 +73,7 @@
  * significant half of a uint64_t struct member.
  */
 #ifdef HOST_WORDS_BIGENDIAN
-#define offsetoflow32(S, M) offsetof(S, M + sizeof(uint32_t))
+#define offsetoflow32(S, M) (offsetof(S, M) + sizeof(uint32_t))
 #else
 #define offsetoflow32(S, M) offsetof(S, M)
 #endif
Signature · 1 line
1.8.4.rc4