Skip to content

Commit b028152

Browse files
committed
Fix operator precedence in OSSL_OPENSSL_PREREQ and OSSL_LIBRESSL_PREREQ
1 parent 9f901dc commit b028152

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/openssl/ossl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
#ifndef LIBRESSL_VERSION_NUMBER
4444
# define OSSL_IS_LIBRESSL 0
4545
# define OSSL_OPENSSL_PREREQ(maj, min, pat) \
46-
(OPENSSL_VERSION_NUMBER >= (maj << 28) | (min << 20) | (pat << 12))
46+
(OPENSSL_VERSION_NUMBER >= ((maj << 28) | (min << 20) | (pat << 12)))
4747
# define OSSL_LIBRESSL_PREREQ(maj, min, pat) 0
4848
#else
4949
# define OSSL_IS_LIBRESSL 1
5050
# define OSSL_OPENSSL_PREREQ(maj, min, pat) 0
5151
# define OSSL_LIBRESSL_PREREQ(maj, min, pat) \
52-
(LIBRESSL_VERSION_NUMBER >= (maj << 28) | (min << 20) | (pat << 12))
52+
(LIBRESSL_VERSION_NUMBER >= ((maj << 28) | (min << 20) | (pat << 12)))
5353
#endif
5454

5555
#if !defined(OPENSSL_NO_ENGINE) && !OSSL_OPENSSL_PREREQ(3, 0, 0)

0 commit comments

Comments
 (0)