diff options
author | Igor Gapchuk <igapchuck@luxoft.com> | 2020-01-10 14:32:19 +0200 |
---|---|---|
committer | Igor Gapchuk <igapchuck@luxoft.com> | 2020-01-10 15:36:03 +0200 |
commit | 769c4958c8bc8f9b2e8554ef5cc91fc97be0707a (patch) | |
tree | 48cccea4509014d03a5115309b26e1ff5e1fa094 /src/components/include/utils/semantic_version.h | |
parent | cd25bf031aa4a417e09336ff130265f6f4d74798 (diff) | |
download | sdl_core-769c4958c8bc8f9b2e8554ef5cc91fc97be0707a.tar.gz |
fixup! Fix versioning appliance for vehicle datafix/sdl_versioning_for_vehicle_data_rebased
Diffstat (limited to 'src/components/include/utils/semantic_version.h')
-rw-r--r-- | src/components/include/utils/semantic_version.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/components/include/utils/semantic_version.h b/src/components/include/utils/semantic_version.h index d434562d5d..01b04495ad 100644 --- a/src/components/include/utils/semantic_version.h +++ b/src/components/include/utils/semantic_version.h @@ -57,12 +57,10 @@ struct SemanticVersion { &minor_version_, &patch_version_); - if (readElements != 3) { - if (readElements != 2) { - major_version_ = 0; - minor_version_ = 0; - patch_version_ = 0; - } + if (readElements < 2) { + major_version_ = 0; + minor_version_ = 0; + patch_version_ = 0; } } |