git.samba.org
/
gd
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2146509
)
Typo ! & 3, not & ~3.
author
Jeremy Allison
<jra@samba.org>
Tue, 11 Apr 2000 23:45:22 +0000
(23:45 +0000)
committer
Jeremy Allison
<jra@samba.org>
Tue, 11 Apr 2000 23:45:22 +0000
(23:45 +0000)
Jeremy.
source/include/byteorder.h
patch
|
blob
|
history
diff --git
a/source/include/byteorder.h
b/source/include/byteorder.h
index a73d709f9d7b76f0ae8ff1c758e274a235d41ac9..5a45e9a012feb5d4190ac394ec5cc8192e1df7e1 100644
(file)
--- a/
source/include/byteorder.h
+++ b/
source/include/byteorder.h
@@
-268,7
+268,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 */