From: Jakub Vít Date: Sun, 4 Sep 2016 18:44:39 +0000 (+0100) Subject: Change definition of UINT16_MAX macro (#84) X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~10^2~1^2~145 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=caef918abd0a9425b3942df3859c7bea7b8986e0;p=utf8proc.git Change definition of UINT16_MAX macro (#84) Change UINT16_MAX from `~(utf8proc_uint16_t)0` to fixed value `65535U` to prevent weird behaviour in complex expressions. --- diff --git a/utf8proc.h b/utf8proc.h index 82c0902..186641d 100644 --- a/utf8proc.h +++ b/utf8proc.h @@ -134,7 +134,7 @@ extern "C" { #endif #ifndef UINT16_MAX -# define UINT16_MAX ~(utf8proc_uint16_t)0 +# define UINT16_MAX 65535U #endif /**