From: Sadie Powell Date: Sat, 30 Jan 2021 17:31:40 +0000 (+0000) Subject: Fix bitshift in INSPIRCD_VERSION_SINCE. X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=10714b0ded0ff1304034bb3c2eab9ef5fb163616;p=user%2Fhenk%2Fcode%2Finspircd.git Fix bitshift in INSPIRCD_VERSION_SINCE. --- 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@"