diff --git a/ChangeLog b/ChangeLog index acc4e89a1..a2dfd5cf4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2005-02-28 Mike Kestner + + * gdk/Region.custom : 64 bit fix for ptr arithmetic. [Fixes #77658] Tue Feb 28 09:44:23 CET 2006 Paolo Molaro diff --git a/gdk/Region.custom b/gdk/Region.custom index 40c5beccf..b7aad4187 100644 --- a/gdk/Region.custom +++ b/gdk/Region.custom @@ -34,7 +34,7 @@ public Rectangle[] GetRectangles () Rectangle[] ret = new Rectangle[n]; int step = Marshal.SizeOf(typeof(Rectangle)); - int ptr = (int)rectangles; + long ptr = (long)rectangles; for (int i = 0; i < n; i++) { ret[i] = (Rectangle)Marshal.PtrToStructure((IntPtr)ptr, typeof(Rectangle)); ptr += step;