Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.
[kai/samba.git] / source3 / include / byteorder.h
index f050e5d6cfc3d226e00f7640a6a4fe7d500adde6..9d17c0ac512c15a979b49efd3380e1d862df216f 100644 (file)
@@ -263,7 +263,7 @@ it also defines lots of intermediate macros, just ignore those :-)
              tab_depth(depth), base, string, outbuf)); }
 
 /* Alignment macros. */
-#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) % 4)) & ~3))
-#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) % 2)) & ~1))
+#define ALIGN4(p,base) ((p) + ((4 - (PTR_DIFF((p), (base)) % 4)) & 3))
+#define ALIGN2(p,base) ((p) + ((2 - (PTR_DIFF((p), (base)) % 2)) & 1))
 
 #endif /* _BYTEORDER_H */