[ghex] Fix endianess conversion for 64-bit floating point
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] Fix endianess conversion for 64-bit floating point
- Date: Tue, 6 Sep 2011 00:00:27 +0000 (UTC)
commit 37f60708fdb600fff80fd9678644b66b94ca87c3
Author: Victor Bogado <victor bogado net>
Date: Tue Aug 3 14:54:55 2010 -0300
Fix endianess conversion for 64-bit floating point
Sources: http://en.wikipedia.org/wiki/Endianness
https://bugzilla.gnome.org/show_bug.cgi?id=625968
src/hex-dialog.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/hex-dialog.c b/src/hex-dialog.c
index 4e37774..fad922b 100644
--- a/src/hex-dialog.c
+++ b/src/hex-dialog.c
@@ -480,14 +480,14 @@ char *HexConvert_64float(HexDialogVal64 *val, HexConversionProperties *prop)
}
else
{
- in.c[0] = val->v[3];
- in.c[1] = val->v[2];
- in.c[2] = val->v[1];
- in.c[3] = val->v[0];
- in.c[4] = val->v[7];
- in.c[5] = val->v[6];
- in.c[6] = val->v[5];
- in.c[7] = val->v[4];
+ in.c[0] = val->v[7];
+ in.c[1] = val->v[6];
+ in.c[2] = val->v[5];
+ in.c[3] = val->v[4];
+ in.c[4] = val->v[3];
+ in.c[5] = val->v[2];
+ in.c[6] = val->v[1];
+ in.c[7] = val->v[0];
}
local = in.f;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]