mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-23 06:33:57 -06:00
Fixed warnings
This commit is contained in:
parent
6539c54f23
commit
6ae1517e13
1 changed files with 2 additions and 2 deletions
|
@ -111,8 +111,8 @@ public:
|
||||||
bool operator>(const Semver &b) const { return ::semver_compare(ver, b.ver) == 1; }
|
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:
|
// We're using '&' instead of the '~' operator here as '~' is unary-only:
|
||||||
// Satisfies patch if Major and minor are equal.
|
// 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_patch(ver, b.ver) != 0; }
|
||||||
bool operator^(const Semver &b) const { return ::semver_satisfies_caret(ver, b.ver); }
|
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; }
|
bool in_range(const Semver &low, const Semver &high) const { return low <= *this && *this <= high; }
|
||||||
|
|
||||||
// Conversion
|
// Conversion
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue