From 58ffd22fd4e1d6ac5b3aafda33a4fc5e15917b3c Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 10 Sep 2013 20:42:00 +0200 Subject: [PATCH] Fixed size calculation so it fits with 32bit arch --- Duplicati/Library/Main/Database/HashLookupHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Library/Main/Database/HashLookupHelper.cs b/Duplicati/Library/Main/Database/HashLookupHelper.cs index 87d6e7bb7..145ab8d14 100644 --- a/Duplicati/Library/Main/Database/HashLookupHelper.cs +++ b/Duplicati/Library/Main/Database/HashLookupHelper.cs @@ -38,9 +38,9 @@ namespace Duplicati.Library.Main /// Initializes a new instance of the class. /// /// The maximum amount of bytes to use for the lookup table - public HashLookupHelper (ulong maxmemory = 8 * 16 * 1024 * 1024) + public HashLookupHelper (ulong maxmemory) { - m_entries = Math.Max(16, maxmemory / 8); + m_entries = Math.Max(16, maxmemory / (ulong)IntPtr.Size); m_lookup = new SortedList[m_entries]; }