diff --git a/source/Cosmos.Core/ManagedMemoryBlock.cs b/source/Cosmos.Core/ManagedMemoryBlock.cs index a0ad20f1d..2a09827d8 100644 --- a/source/Cosmos.Core/ManagedMemoryBlock.cs +++ b/source/Cosmos.Core/ManagedMemoryBlock.cs @@ -31,7 +31,7 @@ namespace Cosmos.Core /// /// Size of buffer /// Byte Boundary alignment - public ManagedMemoryBlock(UInt32 size, byte alignment) + public ManagedMemoryBlock(UInt32 size, int alignment) : this(size, alignment, true) { } @@ -41,7 +41,7 @@ namespace Cosmos.Core /// Size of buffer /// Byte Boundary alignment /// true if buffer should be aligned, false otherwise - public ManagedMemoryBlock(UInt32 size, byte alignment, bool align) + public ManagedMemoryBlock(UInt32 size, int alignment, bool align) { memory = new byte[size + alignment - 1]; fixed (byte* bodystart = memory)