diff options
author | Mike Krüger <mkrueger@xamarin.com> | 2014-08-10 09:18:51 +0400 |
---|---|---|
committer | Mike Krüger <mkrueger@xamarin.com> | 2014-08-10 09:18:51 +0400 |
commit | a044267d61acc263012670c0489154601c7b1a63 (patch) | |
tree | fcd3e9aae8a4805cece3af82e6509cd0957ba964 /ICSharpCode.NRefactory | |
parent | ca961c94523c4e2301222eafb979cacaf5433e52 (diff) |
Use flag operation in GetClassTypeReference.
It's not likely that other flags get added but just in case I made the
operation working as flag operation.
Diffstat (limited to 'ICSharpCode.NRefactory')
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs b/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs index 84538007..4a717bed 100644 --- a/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs +++ b/ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs @@ -125,7 +125,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation type = asm.GetTypeDefinition(fullTypeName); } - if (Interlocked.CompareExchange (ref flags, AlreadyTriedToLookupInDifferentAssemblyFlag, 0) == 0) { + if ((Interlocked.Exchange (ref flags, flags | AlreadyTriedToLookupInDifferentAssemblyFlag) & AlreadyTriedToLookupInDifferentAssemblyFlag) == 0) { type = ResolveUsingTypeContext (context); } } |