Permalink
Browse files

Fix alignment check as 84148994 == 0x05040302

  • Loading branch information...
dago committed Jan 19, 2011
1 parent af48b10 commit 0bbc9aaa1c7648670375cd2ed23754f736ac12aa
Showing with 1 addition and 1 deletion.
  1. +1 −1 configure.ac
View
@@ -423,7 +423,7 @@ AC_DEFUN([AC_C_ALIGNMENT],
*ptr = 0x1;
// catch unaligned word access (ARM cpus)
- *buf = 1; *(buf +1) = 2; *(buf + 2) = 2; *(buf + 3) = 3; *(buf + 4) = 4;
+ *buf = 1; *(buf +1) = 2; *(buf + 2) = 3; *(buf + 3) = 4; *(buf + 4) = 5;
int* i = (int*)(buf+1);
return (84148994 == i) ? 0 : 1;
])

0 comments on commit 0bbc9aa

Please sign in to comment.