Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Delta456 committed Nov 19, 2023
1 parent 5cc6664 commit 58622a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions vlib/semver/semver.v
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ pub fn (ver Version) satisfies(input string) bool {
pub fn (v1 Version) eq(v2 Version) bool {
return compare_eq(v1, v2)
}

// == checks if `v1` is equal to `v2`
pub fn (v1 Version) == (v2 Version) bool {
return compare_eq(v1, v2)
Expand Down
4 changes: 2 additions & 2 deletions vlib/v/pkgconfig/pkgconfig.v
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,13 @@ fn (mut pc PkgConfig) resolve(pkgname string) !string {
pub fn atleast(v string) bool {
v0 := semver.from(pkgconfig.version) or { return false }
v1 := semver.from(v) or { return false }
return v0.gt(v1)
return v0 > v1
}

pub fn (mut pc PkgConfig) atleast(v string) bool {
v0 := semver.from(pc.version) or { return false }
v1 := semver.from(v) or { return false }
return v0.gt(v1)
return v0 > v1
}

pub fn (mut pc PkgConfig) extend(pcdep &PkgConfig) !string {
Expand Down

0 comments on commit 58622a8

Please sign in to comment.