Author: joncham
Date: 2005-05-24 22:19:51 -0400 (Tue, 24 May 2005)
New Revision: 44959
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
Log:
Fixed LowOrder and HighOrder to preserve sign.
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-25 01:49:38 UTC (rev 44958)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2005-05-25 02:19:51 UTC (rev 44959)
@@ -1,3 +1,6 @@
+2005-05-24 Jonathan S. Chambers <[EMAIL PROTECTED]>
+ * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
+
2005-05-24 Peter Bartok <[EMAIL PROTECTED]>
* OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2005-05-25 01:49:38 UTC (rev 44958)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
2005-05-25 02:19:51 UTC (rev 44959)
@@ -747,11 +747,11 @@
}
internal static int LowOrder (int param) {
- return (param & 0xffff);
+ return ((int)(short)(param & 0xffff));
}
internal static int HighOrder (int param) {
- return (param >> 16);
+ return ((int)(short)(param >> 16));
}
// This method exists so controls overriding OnPaintBackground
can have default background painting done
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches