From 3fa5592c41a59a8a79cb6a328606c64a4b451762 Mon Sep 17 00:00:00 2001 From: clararod9 Date: Fri, 22 Jul 2022 14:28:25 -0700 Subject: [PATCH] changing version to 2.0.6 --- circom/Cargo.toml | 2 +- parser/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/circom/Cargo.toml b/circom/Cargo.toml index 7b9d9f2c9..27d1ef2a1 100644 --- a/circom/Cargo.toml +++ b/circom/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "circom" -version = "2.0.5" +version = "2.0.6" authors = ["Costa Group UCM & iden3"] edition = "2021" diff --git a/parser/src/lib.rs b/parser/src/lib.rs index 438cd2c8a..fa6458a89 100644 --- a/parser/src/lib.rs +++ b/parser/src/lib.rs @@ -114,8 +114,8 @@ fn check_number_version( use errors::{CompilerVersionError, NoCompilerVersionWarning}; if let Some(required_version) = version_file { if required_version.0 == version_compiler.0 - && required_version.1 == version_compiler.1 - && required_version.2 <= version_compiler.2 { + && (required_version.1 < version_compiler.1 || + (required_version.1 == version_compiler.1 && required_version.2 <= version_compiler.2)) { Ok(vec![]) } else { let report = CompilerVersionError::produce_report(