diff options
author | Jens Arnold <amiconn@rockbox.org> | 2005-08-01 01:27:10 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2005-08-01 01:27:10 +0000 |
commit | a691db61a6af85650152506c0cef58c0b09ebbc6 (patch) | |
tree | 610f0cfabad5ee0bad5a4ae29c2128e5d68a3456 | |
parent | 6b749c5ab1b0d75ccc65132f627a1230ffcdc21f (diff) | |
download | rockbox-a691db61a6af85650152506c0cef58c0b09ebbc6.tar.gz rockbox-a691db61a6af85650152506c0cef58c0b09ebbc6.zip |
Killed signed/unsigned inconsistency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7275 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/export/system.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index 712e87d3ef..2a8b98c7a5 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h @@ -154,7 +154,7 @@ static inline unsigned short SWAB16(unsigned short value) result[ 7..0] = value[15..8]; */ { - short result; + unsigned short result; asm volatile ("swap.b\t%1,%0" : "=r"(result) : "r"(value)); return result; } @@ -165,7 +165,7 @@ static inline unsigned long SWAW32(unsigned long value) result[15.. 0] = value[31..16]; */ { - long result; + unsigned long result; asm volatile ("swap.w\t%1,%0" : "=r"(result) : "r"(value)); return result; } |