Skip to content

Commit 6e17072

Browse files
committed
Corrected typecast.
1 parent a9fa258 commit 6e17072

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Magick.NET/Pixels/PixelCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public virtual void SetPixels(QuantumType[] values)
231231
if (pixels == IntPtr.Zero)
232232
throw new InvalidOperationException("Image contains no pixel data.");
233233

234-
return QuantumConverter.ToArray(pixels, (int)length);
234+
return QuantumConverter.ToArray(pixels, (uint)length);
235235
}
236236

237237
internal void SetPixelUnchecked(int x, int y, QuantumType[] value)

0 commit comments

Comments
 (0)