From d91dc701463e8572b793b17b737c6fe261b3da53 Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Tue, 21 Jul 2009 20:42:07 +0000 Subject: [PATCH] Fixed deque compilation error in release builds (missing #if..#endif around a place where a debug-only field was used) git-svn-id: file:///srv/devel/repo-conversion/nusu@167 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Collections/Deque.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/Collections/Deque.cs b/Source/Collections/Deque.cs index 14286a9..0899f9a 100644 --- a/Source/Collections/Deque.cs +++ b/Source/Collections/Deque.cs @@ -124,7 +124,9 @@ namespace Nuclex.Support.Collections { this.currentBlock = null; this.currentBlockIndex = -1; this.subIndex = this.deque.blockSize - 1; +#if DEBUG this.expectedVersion = this.deque.version; +#endif } /// The item at the enumerator's current position @@ -155,10 +157,10 @@ namespace Nuclex.Support.Collections { private ItemType[] currentBlock; /// Index in the current block private int subIndex; - +#if DEBUG /// Version the deque is expected to have private int expectedVersion; - +#endif } #endregion // class Enumerator