aboutsummaryrefslogtreecommitdiff
path: root/src/byteorder.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-09-15 12:17:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2012-09-15 12:17:37 -0400
commit30e6af0dcd8d967c083311f3a105a68ac5e158e7 (patch)
tree7a98254293fc0678a881ae58cafd580b3c7963c2 /src/byteorder.h
parent455a7c87e8227d83b7bd8982285fed95546cb8c9 (diff)
downloadseabios-hppa-30e6af0dcd8d967c083311f3a105a68ac5e158e7.zip
seabios-hppa-30e6af0dcd8d967c083311f3a105a68ac5e158e7.tar.gz
seabios-hppa-30e6af0dcd8d967c083311f3a105a68ac5e158e7.tar.bz2
Fix 'union u64_u32_u' member names.
Use 'lo' to mean the low bits and 'hi' to mean the high bits of a 64bit value. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/byteorder.h')
-rw-r--r--src/byteorder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/byteorder.h b/src/byteorder.h
index 94e3a3b..5a8a64a 100644
--- a/src/byteorder.h
+++ b/src/byteorder.h
@@ -17,8 +17,8 @@ static inline u32 __swab32(u32 val) {
static inline u64 __swab64(u64 val) {
union u64_u32_u i, o;
i.val = val;
- o.hi = __swab32(i.lo);
o.lo = __swab32(i.hi);
+ o.hi = __swab32(i.lo);
return o.val;
}