diff options
author | Jeremy Allison <jra@samba.org> | 2000-04-11 23:43:56 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-04-11 23:43:56 +0000 |
commit | a110c7ce512d19aaed81375bda9b684994a049a8 (patch) | |
tree | 739b676d1d3b63c9bcb1dbedc7d659cb63110498 /source3 | |
parent | 9bb3efca8a5671b8ec4ef2864d80e3338094a106 (diff) | |
download | samba-a110c7ce512d19aaed81375bda9b684994a049a8.tar.gz samba-a110c7ce512d19aaed81375bda9b684994a049a8.tar.bz2 samba-a110c7ce512d19aaed81375bda9b684994a049a8.zip |
Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.
Jeremy.
(This used to be commit 83734b67615382d08c3f302f90a94a0eb836c79e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/byteorder.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/byteorder.h b/source3/include/byteorder.h index f050e5d6cf..9d17c0ac51 100644 --- a/source3/include/byteorder.h +++ b/source3/include/byteorder.h @@ -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 */ |