aboutsummaryrefslogtreecommitdiff
path: root/elfcpp/elfcpp_swap.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2008-04-03 23:33:20 +0000
committerIan Lance Taylor <ian@airs.com>2008-04-03 23:33:20 +0000
commit15fb9978c983a54ed438ff773ab9a2c3559d06b4 (patch)
tree3bb089ae86c5140af8429920277bfd7e6262f862 /elfcpp/elfcpp_swap.h
parentcf65847e1816922bcbda0920e8158c8506feebfc (diff)
downloadgdb-15fb9978c983a54ed438ff773ab9a2c3559d06b4.zip
gdb-15fb9978c983a54ed438ff773ab9a2c3559d06b4.tar.gz
gdb-15fb9978c983a54ed438ff773ab9a2c3559d06b4.tar.bz2
* elfcpp_swap.h (Swap_unaligned<64, true>::writeval): Correct
byte order.
Diffstat (limited to 'elfcpp/elfcpp_swap.h')
-rw-r--r--elfcpp/elfcpp_swap.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/elfcpp/elfcpp_swap.h b/elfcpp/elfcpp_swap.h
index 329ed16..9f445dc 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;
}
};