$OpenBSD: patch-par1fileformat_h,v 1.1.1.1 2004/01/23 05:20:48 jolan Exp $
--- par1fileformat.h.orig	2003-05-26 13:01:20.000000000 -0500
+++ par1fileformat.h	2004-01-21 18:06:05.000000000 -0600
@@ -77,8 +77,7 @@ enum FILEENTRYSTATUS
 
 inline bool operator == (const PAR1MAGIC &left, const PAR1MAGIC &right)
 {
-  return ((u32*)&left)[0] == ((u32*)&right)[0] &&
-         ((u32*)&left)[1] == ((u32*)&right)[1];
+  return (0==memcmp(&left, &right, sizeof(left)));
 }
 
 inline bool operator != (const PAR1MAGIC &left, const PAR1MAGIC &right)
