mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:35:59 +08:00
Fixed warnings
This commit is contained in:
parent
6539c54f23
commit
6ae1517e13
@ -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…
x
Reference in New Issue
Block a user