From: Nikos Mavrogiannopoulos Date: Wed, 18 Feb 2015 22:04:24 +0000 (+0100) Subject: use explicit casts to unsigned int in the CURVE_TO_BITS et al X-Git-Tag: gnutls_3_4_0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a990c7c49cb3ca9174d2ffe7a8503eb3fccf72b7;p=thirdparty%2Fgnutls.git use explicit casts to unsigned int in the CURVE_TO_BITS et al --- diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in index e3c5319537..2141eddc33 100644 --- a/lib/includes/gnutls/gnutls.h.in +++ b/lib/includes/gnutls/gnutls.h.in @@ -711,9 +711,9 @@ typedef enum { /* macros to allow specifying a specific curve in gnutls_privkey_generate() * and gnutls_x509_privkey_generate() */ -#define GNUTLS_CURVE_TO_BITS(curve) (unsigned int)((1<<31)|(curve)) -#define GNUTLS_BITS_TO_CURVE(bits) ((bits) & 0x7FFFFFFF) -#define GNUTLS_BITS_ARE_CURVE(bits) ((bits) & 0x80000000) +#define GNUTLS_CURVE_TO_BITS(curve) (unsigned int)((1<<31)|((unsigned int)(curve))) +#define GNUTLS_BITS_TO_CURVE(bits) (((unsigned int)(bits)) & 0x7FFFFFFF) +#define GNUTLS_BITS_ARE_CURVE(bits) (((unsigned int)(bits)) & 0x80000000) /** * gnutls_sec_param_t: