aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsserver/linked-list.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/libmdsserver/linked-list.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libmdsserver/linked-list.h b/src/libmdsserver/linked-list.h
index a99204c..b7bcefb 100644
--- a/src/libmdsserver/linked-list.h
+++ b/src/libmdsserver/linked-list.h
@@ -46,11 +46,7 @@
/**
* Sentinel value indicating that the position is unused
*/
-#if __WORDSIZE == 64
-# define LINKED_LIST_UNUSED (-__INT64_C(9223372036854775807) - 1)
-#else
-# define LINKED_LIST_UNUSED (-2147483647 - 1)
-#endif
+#define LINKED_LIST_UNUSED (-((ssize_t)(SIZE_MAX >> 1)) - 1)