Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jun 23, 2016
1 parent 5e9d8e0 commit ffa70d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ImageProcessorCore/PixelAccessor.cs
Expand Up @@ -54,7 +54,7 @@ public PixelAccessor(ImageBase image)

// Assign the pointer.
// If buffer is allocated on Large Object Heap i.e > 85Kb, then we are going to pin it instead of making a copy.
if (size > (85 * 1024))
if (size > 87040)
{
this.pixelsHandle = GCHandle.Alloc(image.Pixels, GCHandleType.Pinned);
this.pixelsBase = (float*)this.pixelsHandle.AddrOfPinnedObject().ToPointer();
Expand Down

0 comments on commit ffa70d2

Please sign in to comment.