From 8e9bb9c7e909b527cd87e7976e868c17ce97eb73 Mon Sep 17 00:00:00 2001 From: Chris Byrne Date: Sun, 27 Jun 2010 12:53:20 +0200 Subject: [PATCH] Fix bug where the cast cache would insert with wrong key. --- src/inheritance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inheritance.cpp b/src/inheritance.cpp index b0aea67..2e2ec90 100644 --- a/src/inheritance.cpp +++ b/src/inheritance.cpp @@ -93,7 +93,7 @@ namespace , std::ptrdiff_t object_offset, std::size_t distance, std::ptrdiff_t offset) { m_cache.insert(std::make_pair( - key_type(src, target, dynamic_id, offset) + key_type(src, target, dynamic_id, object_offset) , cache_entry(offset, distance) )); } -- 2.11.4.GIT