notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9e5423
)
don't rely on unsigned char on arm
author
notaz
<notasas@gmail.com>
Fri, 5 Apr 2013 00:54:54 +0000
(
03:54
+0300)
committer
notaz
<notasas@gmail.com>
Fri, 5 Apr 2013 00:54:54 +0000
(
03:54
+0300)
libpcsxcore/misc.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/misc.c
b/libpcsxcore/misc.c
index
3ee794b
..
874624d
100644
(file)
--- a/
libpcsxcore/misc.c
+++ b/
libpcsxcore/misc.c
@@
-57,7
+57,8
@@
void mmssdd( char *b, char *p )
{
int m, s, d;
#if defined(__arm__)
- int block = (b[3] << 24) | (b[2] << 16) | (b[1] << 8) | b[0];
+ unsigned char *u = (void *)b;
+ int block = (u[3] << 24) | (u[2] << 16) | (u[1] << 8) | u[0];
#elif defined(__BIGENDIAN__)
int block = (b[0] & 0xff) | ((b[1] & 0xff) << 8) | ((b[2] & 0xff) << 16) | (b[3] << 24);
#else