Skip to content

Commit

Permalink
dep: explicitly convert pkg dep cpn pointer to related object type
Browse files Browse the repository at this point in the history
  • Loading branch information
radhermit committed Jun 18, 2024
1 parent 3588a3a commit c51bc42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pkgcraft/dep/pkg.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ def pvr
end

def cpn
C.pkgcraft_dep_cpn(self)
ptr = C.pkgcraft_dep_cpn(self)
Cpn.send(:from_ptr, ptr)
end

def cpv
Expand Down

0 comments on commit c51bc42

Please sign in to comment.