Przeglądaj źródła

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: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7839)
Matt Caswell 5 lat temu
rodzic
commit
5d609f22d2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      include/openssl/opensslv.h

+ 1 - 1
include/openssl/opensslv.h

@@ -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 )