diff options
author | nialv7 <nialv7@gmail.com> | 2014-09-13 18:55:27 -0400 |
---|---|---|
committer | Nick Peskett <rockbox@peskett.co.uk> | 2014-09-21 07:42:49 +0200 |
commit | 5fd5b13939b907ea01774d01f05e9ef13efd5997 (patch) | |
tree | e1658144685f5dddb5cae1ee6f19c6764cf82aab /firmware/common/unicode.c | |
parent | f9be1ef021fe0b5b1e924474f51c4201e437738e (diff) | |
download | rockbox-5fd5b13939b907ea01774d01f05e9ef13efd5997.tar.gz 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/common/unicode.c')
-rw-r--r-- | firmware/common/unicode.c | 4 |
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 @@ | |||
44 | #define O_NOISODECODE 0 | 44 | #define O_NOISODECODE 0 |
45 | #endif | 45 | #endif |
46 | 46 | ||
47 | #define getle16(p) (p[0] | (p[1] >> 8)) | 47 | #define getle16(p) (p[0] | (p[1] << 8)) |
48 | #define getbe16(p) ((p[1] << 8) | p[0]) | 48 | #define getbe16(p) ((p[0] << 8) | p[1]) |
49 | 49 | ||
50 | #if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE) | 50 | #if !defined (__PCTOOL__) && (CONFIG_PLATFORM & PLATFORM_NATIVE) |
51 | /* Because file scanning uses the default CP table when matching entries, | 51 | /* Because file scanning uses the default CP table when matching entries, |