Skip to content

Commit

Permalink
fixing ValueEntry checks based on the combined shared and weak
Browse files Browse the repository at this point in the history
  • Loading branch information
vlntb committed Nov 27, 2024
1 parent 0050eab commit 3beaa43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/xrpl/basics/TaggedCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ class TaggedCache
bool
isWeak() const
{
return !ptr;
return (ptr && ptr.isWeak());
}
bool
isCached() const
{
return !!ptr;
return (ptr && ptr.isStrong());
}
bool
isExpired() const
Expand Down

0 comments on commit 3beaa43

Please sign in to comment.