Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.
authorJeremy Allison <jra@samba.org>
Tue, 11 Apr 2000 23:43:56 +0000 (23:43 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 11 Apr 2000 23:43:56 +0000 (23:43 +0000)
Jeremy.
(This used to be commit 83734b67615382d08c3f302f90a94a0eb836c79e)

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 */