diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/slic3r/Utils/Semver.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/slic3r/Utils/Semver.hpp b/src/slic3r/Utils/Semver.hpp index 736f9b891..2fb4e3f4b 100644 --- a/src/slic3r/Utils/Semver.hpp +++ b/src/slic3r/Utils/Semver.hpp @@ -111,8 +111,8 @@ public: bool operator>(const Semver &b) const { return ::semver_compare(ver, b.ver) == 1; } // We're using '&' instead of the '~' operator here as '~' is unary-only: // Satisfies patch if Major and minor are equal. - bool operator&(const Semver &b) const { return ::semver_satisfies_patch(ver, b.ver); } - bool operator^(const Semver &b) const { return ::semver_satisfies_caret(ver, b.ver); } + bool operator&(const Semver &b) const { return ::semver_satisfies_patch(ver, b.ver) != 0; } + bool operator^(const Semver &b) const { return ::semver_satisfies_caret(ver, b.ver) != 0; } bool in_range(const Semver &low, const Semver &high) const { return low <= *this && *this <= high; } // Conversion |