From 88b89dea19c204b1a6380625669a8bc609f0b48d Mon Sep 17 00:00:00 2001 From: Markus Ewald Date: Tue, 21 Jul 2009 20:47:32 +0000 Subject: [PATCH] Fixed another compilation error that was causing the XBox 360 build to fail because .NET is missing the Math.DivRem() method on the XBox 360 git-svn-id: file:///srv/devel/repo-conversion/nusu@168 d2e56fa2-650e-0410-a79f-9358c0239efd --- Source/Collections/Deque.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Collections/Deque.cs b/Source/Collections/Deque.cs index 0899f9a..b292323 100644 --- a/Source/Collections/Deque.cs +++ b/Source/Collections/Deque.cs @@ -294,7 +294,12 @@ namespace Nuclex.Support.Collections { } index += this.firstBlockStartIndex; +#if XBOX360 + blockIndex = index / this.blockSize; + subIndex = index % this.blockSize; +#else blockIndex = Math.DivRem(index, this.blockSize, out subIndex); +#endif } ///