add 'L' after _OPENSSL_VERSION_PRE_RELEASE literals, fixes #8021
authorDavid von Oheimb <David.von.Oheimb@siemens.com>
Wed, 16 Jan 2019 14:38:34 +0000 (15:38 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 21 Jan 2019 09:43:27 +0000 (09:43 +0000)
Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8036)

include/openssl/opensslv.h

index 08d907588f1c511ce238ede1dfd301e2be3148b5..9bb0f80ae0743ddc1b57730ac83c4c4c4d129db6 100644 (file)
@@ -126,9 +126,9 @@ const char *OPENSSL_version_build_metadata(void);
 # if !OPENSSL_API_4
 /* Synthesize OPENSSL_VERSION_NUMBER with the layout 0xMNN00PPSL */
 #  ifdef OPENSSL_VERSION_PRE_RELEASE
-#   define _OPENSSL_VERSION_PRE_RELEASE 0x0
+#   define _OPENSSL_VERSION_PRE_RELEASE 0x0L
 #  else
-#   define _OPENSSL_VERSION_PRE_RELEASE 0xf
+#   define _OPENSSL_VERSION_PRE_RELEASE 0xfL
 #  endif
 #  define OPENSSL_VERSION_NUMBER        \
           ( (OPENSSL_VERSION_MAJOR<<28)  \