Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
khizmax committed Nov 11, 2018
1 parent bf8d28c commit f10fef7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cds/gc/dhp.h
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ namespace cds { namespace gc {
template <typename T>
T protect( atomics::atomic<T> const& toGuard )
{
return protect(toGuard, [](T* p) { return p; });
return protect(toGuard, [](T p) { return p; });
}

/// Protects a converted pointer of type <tt> atomic<T*> </tt>
Expand Down Expand Up @@ -954,7 +954,7 @@ namespace cds { namespace gc {
template <typename T>
T protect( size_t nIndex, atomics::atomic<T> const& toGuard )
{
return protect(nIndex, toGuard, [](T* p) { return p; });
return protect(nIndex, toGuard, [](T p) { return p; });
}

/// Protects a pointer of type \p atomic<T*>
Expand Down
4 changes: 2 additions & 2 deletions cds/gc/hp.h
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ namespace cds { namespace gc {
template <typename T>
T protect( atomics::atomic<T> const& toGuard )
{
return protect(toGuard, [](T* p) { return p; });
return protect(toGuard, [](T p) { return p; });
}

/// Protects a converted pointer of type \p atomic<T*>
Expand Down Expand Up @@ -935,7 +935,7 @@ namespace cds { namespace gc {
template <typename T>
T protect( size_t nIndex, atomics::atomic<T> const& toGuard )
{
return protect(nIndex, toGuard, [](T* p) { return p; });
return protect(nIndex, toGuard, [](T p) { return p; });
}

/// Protects a pointer of type \p atomic<T*>
Expand Down

0 comments on commit f10fef7

Please sign in to comment.