diff options
author | bubnikv <bubnikv@gmail.com> | 2018-10-29 19:34:06 +0300 |
---|---|---|
committer | bubnikv <bubnikv@gmail.com> | 2018-10-29 19:34:06 +0300 |
commit | 6ae1517e13a4c5be16aa4274caffdff727c612f4 (patch) | |
tree | 772095e095c6e55f0c1934a842bf1228d3eb0a5b /src | |
parent | 6539c54f23517a20374a1d9330b05cfdb0f02344 (diff) |
Fixed warningsvb_precompiled_headers
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 |