summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-04-12 13:02:37 -0400
committerNick Mathewson <nickm@torproject.org>2016-04-12 13:02:37 -0400
commiteafcd7b0fccb0993d6c8bcaabc40231d0bdb5289 (patch)
tree7150d30d4d173ddf6d2c04109b1b8d97dfb70119 /src/common
parent591029253f4b79de0ecd47c464623b0ce13270ef (diff)
parent7babf33239eb1e349826753a9d0405cb59150cce (diff)
downloadtor-eafcd7b0fccb0993d6c8bcaabc40231d0bdb5289.tar.gz
tor-eafcd7b0fccb0993d6c8bcaabc40231d0bdb5289.zip
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/common')
-rw-r--r--src/common/memarea.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/memarea.c b/src/common/memarea.c
index cfba80be93..0a3fd009b0 100644
--- a/src/common/memarea.c
+++ b/src/common/memarea.c
@@ -24,9 +24,9 @@
/** A value which, when masked out of a pointer, produces a maximally aligned
* pointer. */
#if MEMAREA_ALIGN == 4
-#define MEMAREA_ALIGN_MASK 3lu
+#define MEMAREA_ALIGN_MASK ((uintptr_t)3)
#elif MEMAREA_ALIGN == 8
-#define MEMAREA_ALIGN_MASK 7lu
+#define MEMAREA_ALIGN_MASK ((uintptr_t)7)
#else
#error "void* is neither 4 nor 8 bytes long. I don't know how to align stuff."
#endif