summaryrefslogtreecommitdiff
path: root/source4/lib/replace/replace.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-04-17 14:47:07 +0200
committerAndrew Tridgell <tridge@samba.org>2008-04-17 14:47:07 +0200
commit107ab090e23dfc517bc74bb553315cd3528e1f7d (patch)
tree6df824780f4942ec8ce037a21da0d5cce6272773 /source4/lib/replace/replace.h
parent769ebe91711330d5b75f9632c2b1d1847dd32a15 (diff)
downloadsamba-107ab090e23dfc517bc74bb553315cd3528e1f7d.tar.gz
samba-107ab090e23dfc517bc74bb553315cd3528e1f7d.tar.bz2
samba-107ab090e23dfc517bc74bb553315cd3528e1f7d.zip
use uintptr_t instead of intptr_t where appropriate
(This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
Diffstat (limited to 'source4/lib/replace/replace.h')
-rw-r--r--source4/lib/replace/replace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index 5fe79394eb..bf95169352 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -499,7 +499,7 @@ typedef int bool;
Also, please call this via the discard_const_p() macro interface, as that
makes the return type safe.
*/
-#define discard_const(ptr) ((void *)((intptr_t)(ptr)))
+#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
/** Type-safe version of discard_const */
#define discard_const_p(type, ptr) ((type *)discard_const(ptr))