Update if expr. It was wrong

This commit is contained in:
de4dot 2011-10-31 19:38:36 +01:00
parent cbf37e8732
commit 1eedf7cb3e

View File

@ -693,8 +693,8 @@ namespace de4dot.blocks {
// a and b must be either exactly a TypeReference or exactly a TypeDefinition
static bool compareTypeReferences(TypeReference a, TypeReference b) {
if (a.GetType() != typeof(TypeReference) && a.GetType() != typeof(TypeDefinition) &&
b.GetType() != typeof(TypeReference) && b.GetType() != typeof(TypeDefinition))
if ((a.GetType() != typeof(TypeReference) && a.GetType() != typeof(TypeDefinition)) ||
(b.GetType() != typeof(TypeReference) && b.GetType() != typeof(TypeDefinition)))
throw new ApplicationException("arg must be exactly of type TypeReference or TypeDefinition");
return a.Name == b.Name &&