Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Krüger <mkrueger@xamarin.com>2014-08-10 09:18:51 +0400
committerMike Krüger <mkrueger@xamarin.com>2014-08-10 09:18:51 +0400
commita044267d61acc263012670c0489154601c7b1a63 (patch)
treefcd3e9aae8a4805cece3af82e6509cd0957ba964 /ICSharpCode.NRefactory
parentca961c94523c4e2301222eafb979cacaf5433e52 (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.cs2
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);
}
}