From: Mathias Berchtold Date: Thu, 30 May 2019 05:25:31 +0000 (+0200) Subject: Add missing parentheses in macro X-Git-Tag: openssl-3.0.0-alpha1~1999 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=bf5b04ea25d6ac7d31e388b4e87d3eb5cd1e1e2b;hp=cb30e46b45589166a83703f923aa89881dab1e0c;ds=sidebyside Add missing parentheses in macro Add missing parentheses in macro Reviewed-by: Richard Levitte Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/9044) --- diff --git a/include/openssl/opensslv.h b/include/openssl/opensslv.h index 73e64a722d..0219d5fd67 100644 --- a/include/openssl/opensslv.h +++ b/include/openssl/opensslv.h @@ -78,7 +78,7 @@ extern "C" { /* For checking general API compatibility when preprocessing */ # define OPENSSL_VERSION_PREREQ(maj,min) \ - ((OPENSSL_VERSION_MAJOR << 16) + OPENSSL_VERSION_MINOR >= (maj << 16) + min) + ((OPENSSL_VERSION_MAJOR << 16) + OPENSSL_VERSION_MINOR >= ((maj) << 16) + (min)) /* Helper macros for CPP string composition */ # define OPENSSL_MSTR_HELPER(x) #x