From b2e4fc3fa819c2776696d0c2dfde395c701ea72c Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Tue, 28 Feb 2006 16:09:36 +0000 Subject: [PATCH] 2005-02-28 Mike Kestner * gdk/Region.custom : 64 bit fix for ptr arithmetic. [Fixes #77658] svn path=/trunk/gtk-sharp/; revision=57397 --- ChangeLog | 3 +++ gdk/Region.custom | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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;