aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/linked-list.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-11 20:00:22 +0200
committerMattias Andrée <maandree@kth.se>2016-07-11 20:00:22 +0200
commitce216e062c95dafe87df1edc638f45b61ebe3a03 (patch)
tree10d75b88347f04781d5a31f30c3242e33b13e638 /src/libmdsserver/linked-list.c
parentwhitespace (diff)
downloadmds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.gz
mds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.bz2
mds-ce216e062c95dafe87df1edc638f45b61ebe3a03.tar.xz
Use *_MAX instead of __WORDSIZE
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/linked-list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmdsserver/linked-list.c b/src/libmdsserver/linked-list.c
index 3b60e83..6921951 100644
--- a/src/libmdsserver/linked-list.c
+++ b/src/libmdsserver/linked-list.c
@@ -47,7 +47,7 @@ static size_t to_power_of_two(size_t value)
value |= value >> 4;
value |= value >> 8;
value |= value >> 16;
-#if __WORDSIZE == 64
+#if SIZE_MAX == UINT64_MAX
value |= value >> 32;
#endif
return value + 1;