diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-10-06 23:16:38 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-10-06 23:16:38 +0000 |
commit | d718786c681385941da52fc1754cc915afbb4f28 (patch) | |
tree | e208989f43fd9ef5f4e980a27612083dcb28d01f /firmware/export | |
parent | d48442039ed399c0ba5ae51bc42d56b5b23f1bc4 (diff) | |
download | rockbox-d718786c681385941da52fc1754cc915afbb4f28.tar.gz rockbox-d718786c681385941da52fc1754cc915afbb4f28.zip |
The endian swap macros should be unsigned. This fixes the FAT16 issue.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5195 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/system.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index edbfee31e1..fc0b7506bc 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -93,7 +93,7 @@ static inline int set_irq_level(int level) | |||
93 | return i; | 93 | return i; |
94 | } | 94 | } |
95 | 95 | ||
96 | static inline short SWAB16(short value) | 96 | static inline unsigned short SWAB16(unsigned short value) |
97 | /* | 97 | /* |
98 | result[15..8] = value[ 7..0]; | 98 | result[15..8] = value[ 7..0]; |
99 | result[ 7..0] = value[15..8]; | 99 | result[ 7..0] = value[15..8]; |
@@ -104,7 +104,7 @@ static inline short SWAB16(short value) | |||
104 | return result; | 104 | return result; |
105 | } | 105 | } |
106 | 106 | ||
107 | static inline long SWAW32(long value) | 107 | static inline unsigned long SWAW32(unsigned long value) |
108 | /* | 108 | /* |
109 | result[31..16] = value[15.. 0]; | 109 | result[31..16] = value[15.. 0]; |
110 | result[15.. 0] = value[31..16]; | 110 | result[15.. 0] = value[31..16]; |
@@ -115,7 +115,7 @@ static inline long SWAW32(long value) | |||
115 | return result; | 115 | return result; |
116 | } | 116 | } |
117 | 117 | ||
118 | static inline long SWAB32(long value) | 118 | static inline unsigned long SWAB32(unsigned long value) |
119 | /* | 119 | /* |
120 | result[31..24] = value[ 7.. 0]; | 120 | result[31..24] = value[ 7.. 0]; |
121 | result[23..16] = value[15.. 8]; | 121 | result[23..16] = value[15.. 8]; |