diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-05-15 22:53:08 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:58 +0200 |
commit | f6caac38117a99782513db0b62bfd29b921f873c (patch) | |
tree | cc1bbc54339a3044898b1618a69d425e1b178dcb /src/Platform.cpp | |
parent | d0aad1c2cf1c734c650d277d4ad61b3e593a9d01 (diff) |
Fix version =,< and <= not working. Also fix incorrect platform family handling
Diffstat (limited to 'src/Platform.cpp')
-rw-r--r-- | src/Platform.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Platform.cpp b/src/Platform.cpp index f92e1ea..55c2188 100644 --- a/src/Platform.cpp +++ b/src/Platform.cpp @@ -94,12 +94,12 @@ namespace sibs bool isSamePlatformFamily(Platform a, Platform b) { - return a & b; + return (a & b) == a; } bool isBaseForPlatform(Platform base, Platform platform) { - return base == PLATFORM_ANY || base == platform || (isSamePlatformFamily(platform, base) && countSetBits(base) < countSetBits(platform)); + return base == PLATFORM_ANY || base == platform || isSamePlatformFamily(base, platform); } Platform getPlatformGenericType(Platform platform) |