diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-26 12:00:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-26 12:00:28 +0200 |
commit | f086522a901442599566b60271efb5a4c7691d55 (patch) | |
tree | b48da3636139e36b054f745491e6e6bc1733b508 /bpkg | |
parent | f1c6b4d1382d50b29181c65d6b6cb6fcc47c1770 (diff) |
Change max version component from 8 to 16 characters
Diffstat (limited to 'bpkg')
-rw-r--r-- | bpkg/manifest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bpkg/manifest.cxx b/bpkg/manifest.cxx index 2236d3a..0557259 100644 --- a/bpkg/manifest.cxx +++ b/bpkg/manifest.cxx @@ -218,10 +218,10 @@ namespace bpkg bool zo (false); // Digit-only zero component. if (numeric) { - if (end - begin > 8) - throw invalid_argument ("8 digits maximum allowed in a component"); + if (end - begin > 16) + throw invalid_argument ("16 digits maximum allowed in a component"); - append (8 - (end - begin), '0'); // Add padding zeros. + append (16 - (end - begin), '0'); // Add padding zeros. string c (begin, end); append (c); |