From 777a805782cbfb554bf168129069942ded4d109f Mon Sep 17 00:00:00 2001 From: James South Date: Thu, 22 May 2014 10:04:24 +0100 Subject: [PATCH] v1.9.1 Fixing casting issue in quantizer on 64bit processors Former-commit-id: 7d9b5aa38f572eb9816ccc4eb5ad5c0b83a7e832 --- build/Build.bat | 2 +- src/ImageProcessor/Imaging/Quantizer.cs | 2 +- src/ImageProcessor/Properties/AssemblyInfo.cs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/build/Build.bat b/build/Build.bat index 397ddf7e3..436d2ba1c 100644 --- a/build/Build.bat +++ b/build/Build.bat @@ -1,5 +1,5 @@ @ECHO OFF -SET version=1.9.0.0 +SET version=1.9.1.0 SET webversion=3.2.4.0 SET webconfigversion=1.1.0.0 diff --git a/src/ImageProcessor/Imaging/Quantizer.cs b/src/ImageProcessor/Imaging/Quantizer.cs index 8241397e3..30c8bea4b 100644 --- a/src/ImageProcessor/Imaging/Quantizer.cs +++ b/src/ImageProcessor/Imaging/Quantizer.cs @@ -131,7 +131,7 @@ namespace ImageProcessor.Imaging for (int col = 0; col < width; col++) { this.InitialQuantizePixel(new Color32(sourcePixel)); - sourcePixel = (IntPtr)((int)sourcePixel + this.pixelSize); + sourcePixel = (IntPtr)((long)sourcePixel + this.pixelSize); } // Now I have the pixel, call the FirstPassQuantize function... diff --git a/src/ImageProcessor/Properties/AssemblyInfo.cs b/src/ImageProcessor/Properties/AssemblyInfo.cs index 0e7ded17b..e7e793a69 100644 --- a/src/ImageProcessor/Properties/AssemblyInfo.cs +++ b/src/ImageProcessor/Properties/AssemblyInfo.cs @@ -32,6 +32,6 @@ using System.Security; // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("1.9.0.0")] -[assembly: AssemblyFileVersion("1.9.0.0")] +[assembly: AssemblyVersion("1.9.1.0")] +[assembly: AssemblyFileVersion("1.9.1.0")]