aboutsummaryrefslogtreecommitdiff
path: root/butl/standard-version
diff options
context:
space:
mode:
Diffstat (limited to 'butl/standard-version')
-rw-r--r--butl/standard-version4
1 files changed, 3 insertions, 1 deletions
diff --git a/butl/standard-version b/butl/standard-version
index ae26d71..f609215 100644
--- a/butl/standard-version
+++ b/butl/standard-version
@@ -73,8 +73,10 @@ namespace butl
earliest () const noexcept;
bool
- stub () const noexcept {return version == 0;}
+ stub () const noexcept {return version == std::uint64_t (~0);}
+ // Comparison of empty or stub versions doesn't make sense.
+ //
int
compare (const standard_version& v) const noexcept
{