]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix bitshift in INSPIRCD_VERSION_SINCE.
authorSadie Powell <sadie@witchery.services>
Sat, 30 Jan 2021 17:31:40 +0000 (17:31 +0000)
committerSadie Powell <sadie@witchery.services>
Sat, 30 Jan 2021 17:31:40 +0000 (17:31 +0000)
make/template/config.h

index 97dd15453d9b92ea282b54ccbda74717e28190e6..ec3cff94abfd700a1d7432981030565c19e8cd1a 100644 (file)
@@ -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@"