summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
authorLukas Mai <l.mai@web.de>2017-11-11 13:34:20 +0100
committerLukas Mai <l.mai@web.de>2017-11-11 13:53:30 +0100
commitb7112dce7ec5b90ace89fcf4598b0be8168fea82 (patch)
tree08af05d6a7494380996d9a929aba4e3a74dfb9c3 /handy.h
parent2b8b74b0774fa605da54cf36ca3be953a4ef9703 (diff)
downloadperl-b7112dce7ec5b90ace89fcf4598b0be8168fea82.tar.gz
fix MEM_SIZE_MAX definition
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/handy.h b/handy.h
index f75c900656..d8d041d7bc 100644
--- a/handy.h
+++ b/handy.h
@@ -2295,7 +2295,7 @@ PoisonWith(0xEF) for catching access to freed memory.
#define NEWSV(x,len) newSV(len)
#endif
-#define MEM_SIZE_MAX ((MEM_SIZE)~0)
+#define MEM_SIZE_MAX ((MEM_SIZE)-1)
#define _PERL_STRLEN_ROUNDUP_UNCHECKED(n) (((n) - 1 + PERL_STRLEN_ROUNDUP_QUANTUM) & ~((MEM_SIZE)PERL_STRLEN_ROUNDUP_QUANTUM - 1))