From 10714b0ded0ff1304034bb3c2eab9ef5fb163616 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 30 Jan 2021 17:31:40 +0000 Subject: [PATCH] Fix bitshift in INSPIRCD_VERSION_SINCE. --- make/template/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/template/config.h b/make/template/config.h index 97dd15453..ec3cff94a 100644 --- a/make/template/config.h +++ b/make/template/config.h @@ -29,7 +29,7 @@ #define INSPIRCD_VERSION_BEFORE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) < ((MAJOR << 8) | (MINOR))) /** Determines whether this version of InspIRCd is equal to or newer than the requested version. */ -#define INSPIRCD_VERSION_SINCE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 16) | @VERSION_MINOR@) >= ((MAJOR << 8) | (MINOR))) +#define INSPIRCD_VERSION_SINCE(MAJOR, MINOR) (((@VERSION_MAJOR@ << 8) | @VERSION_MINOR@) >= ((MAJOR << 8) | (MINOR))) /** The default location that config files are stored in. */ #define INSPIRCD_CONFIG_PATH "@CONFIG_DIR@" -- 2.39.2