summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authornialv7 <nialv7@gmail.com>2014-09-13 18:55:27 -0400
committerNick Peskett <rockbox@peskett.co.uk>2014-09-21 07:42:49 +0200
commit5fd5b13939b907ea01774d01f05e9ef13efd5997 (patch)
treee1658144685f5dddb5cae1ee6f19c6764cf82aab /firmware
parentf9be1ef021fe0b5b1e924474f51c4201e437738e (diff)
downloadrockbox-5fd5b13939b907ea01774d01f05e9ef13efd5997.tar.gz
rockbox-5fd5b13939b907ea01774d01f05e9ef13efd5997.tar.bz2
rockbox-5fd5b13939b907ea01774d01f05e9ef13efd5997.zip
unicode: Fix getle16 and getbe16
Change-Id: I8e1df113eee156491fc9624d148eb64c388bd962 Reviewed-on: http://gerrit.rockbox.org/958 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com> Tested: Chiwen Chang <rock1104.tw@yahoo.com.tw> Reviewed-by: Nick Peskett <rockbox@peskett.co.uk> Tested: Nick Peskett <rockbox@peskett.co.uk>
Diffstat (limited to 'firmware')
-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,