summaryrefslogtreecommitdiff
path: root/tools/omf/omftool.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/omf/omftool.h')
-rw-r--r--tools/omf/omftool.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/omf/omftool.h b/tools/omf/omftool.h
index b6e291ca58..4b794d94b4 100644
--- a/tools/omf/omftool.h
+++ b/tools/omf/omftool.h
@@ -84,7 +84,7 @@ private:
uint32_t e32(uint32_t x)
{
if (bigEndian)
- return (x>>24) |
+ return (x>>24) |
((x<<8) & 0x00FF0000) |
((x>>8) & 0x0000FF00) |
(x<<24);
@@ -95,7 +95,7 @@ private:
uint64_t e64(uint64_t x)
{
if (bigEndian)
- return (x>>56) |
+ return (x>>56) |
((x<<40) & 0x00FF000000000000) |
((x<<24) & 0x0000FF0000000000) |
((x<<8) & 0x000000FF00000000) |