Skip to content

Commit

Permalink
Merge pull request #1967 from wmtan/FixBugInTypeComparison
Browse files Browse the repository at this point in the history
Fix check for same type
  • Loading branch information
davidlt committed Jan 8, 2014
2 parents 3f2f1fc + 1269294 commit 3b7f53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/Utilities/src/TypeWithDict.cc
Expand Up @@ -524,7 +524,7 @@ const void*
TypeWithDict::
pointerToBaseType(const void* ptr, const TypeWithDict& derivedType) const
{
if (this == &derivedType) {
if (this->ti_ == derivedType.ti_ || *this->ti_ == *derivedType.ti_) {
return ptr;
}
int offset = derivedType.getBaseClassOffset(*this);
Expand Down

0 comments on commit 3b7f53d

Please sign in to comment.