From 6f6b28f0e017893579dced201434d25af0e570e6 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 3 Apr 2008 23:33:20 +0000 Subject: * elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct byte order. --- elfcpp/elfcpp_swap.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'elfcpp/elfcpp_swap.h') diff --git a/elfcpp/elfcpp_swap.h b/elfcpp/elfcpp_swap.h index 329ed16383..9f445dc69a 100644 --- a/elfcpp/elfcpp_swap.h +++ b/elfcpp/elfcpp_swap.h @@ -367,14 +367,14 @@ struct Swap_unaligned<64, true> static inline void writeval(unsigned char* wv, Valtype v) { - wv[7] = v >> 56; - wv[6] = v >> 48; - wv[5] = v >> 40; - wv[4] = v >> 32; - wv[3] = v >> 24; - wv[2] = v >> 16; - wv[1] = v >> 8; - wv[0] = v; + wv[0] = v >> 56; + wv[1] = v >> 48; + wv[2] = v >> 40; + wv[3] = v >> 32; + wv[4] = v >> 24; + wv[5] = v >> 16; + wv[6] = v >> 8; + wv[7] = v; } }; -- cgit v1.2.1