1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2004-10-06 23:16:38 +00:00
parent d48442039e
commit d718786c68

View file

@ -93,7 +93,7 @@ static inline int set_irq_level(int level)
return i;
}
static inline short SWAB16(short value)
static inline unsigned short SWAB16(unsigned short value)
/*
result[15..8] = value[ 7..0];
result[ 7..0] = value[15..8];
@ -104,7 +104,7 @@ static inline short SWAB16(short value)
return result;
}
static inline long SWAW32(long value)
static inline unsigned long SWAW32(unsigned long value)
/*
result[31..16] = value[15.. 0];
result[15.. 0] = value[31..16];
@ -115,7 +115,7 @@ static inline long SWAW32(long value)
return result;
}
static inline long SWAB32(long value)
static inline unsigned long SWAB32(unsigned long value)
/*
result[31..24] = value[ 7.. 0];
result[23..16] = value[15.. 8];