From: Aki Tuomi Date: Thu, 30 Aug 2018 08:54:29 +0000 (+0300) Subject: lib: Fix documentation on POINTER_CAST X-Git-Tag: 2.3.9~1495 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ad7ac26ac81405e349b0af4d21dd9144fbb8827;p=thirdparty%2Fdovecot%2Fcore.git lib: Fix documentation on POINTER_CAST --- diff --git a/src/lib/macros.h b/src/lib/macros.h index 3253e21a5a..b12f3764cb 100644 --- a/src/lib/macros.h +++ b/src/lib/macros.h @@ -36,7 +36,7 @@ #define I_MAX(a, b) (((a) > (b)) ? (a) : (b)) /* make it easier to cast from/to pointers. assumes that - sizeof(size_t) == sizeof(void *) and they're both the largest datatypes + sizeof(uintptr_t) == sizeof(void *) and they're both the largest datatypes that are allowed to be used. so, long long isn't safe with these. */ #define POINTER_CAST(i) \ ((void *) (((uintptr_t)NULL) + (i)))