aboutsummaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authornotaz2010-12-05 22:51:00 +0200
committernotaz2010-12-05 22:51:00 +0200
commit507aaf98de47ca11c52ced9957d4f190aff71777 (patch)
tree36885743250429ff90806f6fbc8c992a42d97aad /libpcsxcore
parent67ba0fb4fa3f120c4156ca7d6155c51b7623e84f (diff)
downloadpcsx_rearmed-507aaf98de47ca11c52ced9957d4f190aff71777.tar.gz
pcsx_rearmed-507aaf98de47ca11c52ced9957d4f190aff71777.tar.bz2
pcsx_rearmed-507aaf98de47ca11c52ced9957d4f190aff71777.zip
fix some alignment issues
Diffstat (limited to 'libpcsxcore')
-rw-r--r--libpcsxcore/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index ef49244..38a516c 100644
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -54,7 +54,9 @@ struct iso_directory_record {
void mmssdd( char *b, char *p )
{
int m, s, d;
-#if defined(__BIGENDIAN__)
+#if defined(__arm__)
+ int block = (b[3] << 24) | (b[2] << 16) | (b[1] << 8) | b[0];
+#elif defined(__BIGENDIAN__)
int block = (b[0] & 0xff) | ((b[1] & 0xff) << 8) | ((b[2] & 0xff) << 16) | (b[3] << 24);
#else
int block = *((int*)b);