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
This commit is contained in:
parent
9ec6546f70
commit
d91dc70146
|
@ -124,7 +124,9 @@ namespace Nuclex.Support.Collections {
|
||||||
this.currentBlock = null;
|
this.currentBlock = null;
|
||||||
this.currentBlockIndex = -1;
|
this.currentBlockIndex = -1;
|
||||||
this.subIndex = this.deque.blockSize - 1;
|
this.subIndex = this.deque.blockSize - 1;
|
||||||
|
#if DEBUG
|
||||||
this.expectedVersion = this.deque.version;
|
this.expectedVersion = this.deque.version;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>The item at the enumerator's current position</summary>
|
/// <summary>The item at the enumerator's current position</summary>
|
||||||
|
@ -155,10 +157,10 @@ namespace Nuclex.Support.Collections {
|
||||||
private ItemType[] currentBlock;
|
private ItemType[] currentBlock;
|
||||||
/// <summary>Index in the current block</summary>
|
/// <summary>Index in the current block</summary>
|
||||||
private int subIndex;
|
private int subIndex;
|
||||||
|
#if DEBUG
|
||||||
/// <summary>Version the deque is expected to have</summary>
|
/// <summary>Version the deque is expected to have</summary>
|
||||||
private int expectedVersion;
|
private int expectedVersion;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion // class Enumerator
|
#endregion // class Enumerator
|
||||||
|
|
Loading…
Reference in New Issue
Block a user