summaryrefslogtreecommitdiffstats
path: root/firmware/common
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/unicode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/common/unicode.c b/firmware/common/unicode.c
index 8988686b70..eb0af7092c 100644
--- a/firmware/common/unicode.c
+++ b/firmware/common/unicode.c
@@ -44,8 +44,8 @@
#define O_NOISODECODE 0
#endif
-#define getle16(p) (p[0] | (p[1] >> 8))
-#define getbe16(p) ((p[1] << 8) | p[0])
+#define getle16(p) (p[0] | (p[1] << 8))
+#define getbe16(p) ((p[0] << 8) | p[1])
#if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
/* Because file scanning uses the default CP table when matching entries,