Commit 5d609f22 authored by Matt Caswell's avatar Matt Caswell
Browse files

Remove the cast from the definition of OPENSSL_VERSION_NUMBER



If a cast is included in the definition it cannot be used in preprocessor
expressions, e.g. "#if OPENSSL_VERSION_NUMBER > 0x10000000L"

[extended tests]

Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7839)
parent 56bc3ea0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -131,7 +131,7 @@ const char *OPENSSL_version_build_metadata(void);
#   define _OPENSSL_VERSION_PRE_RELEASE 0xf
#  endif
#  define OPENSSL_VERSION_NUMBER        \
    (long)( (OPENSSL_VERSION_MAJOR<<28)  \
          ( (OPENSSL_VERSION_MAJOR<<28)  \
            |(OPENSSL_VERSION_MINOR<<20) \
            |(OPENSSL_VERSION_PATCH<<4)  \
            |_OPENSSL_VERSION_PRE_RELEASE )