Skip to content

Commit 8701888

Browse files
committed
ARM/Linux can fault on unaligned access
Sometimes SIGBUS results from unaligned access.
1 parent 2547514 commit 8701888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/misc/pv/byteBuffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ struct swap<8> {
157157
* in execution time and/or object code size of byte-wise copy.
158158
*/
159159

160-
#ifdef _ARCH_PPC
160+
#if defined(_ARCH_PPC) || defined(__arm__) || defined(_M_ARM)
161161

162162
template<typename T>
163163
union alignu {

0 commit comments

Comments
 (0)