summaryrefslogtreecommitdiff
path: root/src/cache.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.hpp')
-rw-r--r--src/cache.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.hpp b/src/cache.hpp
index 0d74d7bc..8f540891 100644
--- a/src/cache.hpp
+++ b/src/cache.hpp
@@ -55,7 +55,7 @@ struct ProgramCache {
// Finds out whether the properties match
bool MatchInCache(const ContextPointer ref_context, const Precision &ref_precision,
const std::string &ref_routine) {
- return (context_ptr == ref_context &&
+ return (*context_ptr == *ref_context &&
precision == ref_precision &&
routine_name_ == ref_routine);
}