diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-04-12 13:02:37 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-04-12 13:02:37 -0400 |
commit | eafcd7b0fccb0993d6c8bcaabc40231d0bdb5289 (patch) | |
tree | 7150d30d4d173ddf6d2c04109b1b8d97dfb70119 /src/common | |
parent | 591029253f4b79de0ecd47c464623b0ce13270ef (diff) | |
parent | 7babf33239eb1e349826753a9d0405cb59150cce (diff) | |
download | tor-eafcd7b0fccb0993d6c8bcaabc40231d0bdb5289.tar.gz tor-eafcd7b0fccb0993d6c8bcaabc40231d0bdb5289.zip |
Merge branch 'maint-0.2.8'
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/memarea.c | 4 |
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 |