2009-11-01 Mike Kestner <mkestner@novell.com>

* glib/Value.cs: avoid cast exceptions passing ints as objects on
	  gulong values.  [Fixes #539812]

svn path=/trunk/gtk-sharp/; revision=145169
This commit is contained in:
Mike Kestner 2009-11-01 17:49:57 +00:00
parent 95bd0d6271
commit 95a430c74d
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-11-01 Mike Kestner <mkestner@novell.com>
* glib/Value.cs: avoid cast exceptions passing ints as objects on
gulong values. [Fixes #539812]
2009-10-30 Mike Kestner <mkestner@novell.com>
* glib/GType.cs: avoid another exception on bogus assm.Locations.

View File

@ -552,7 +552,7 @@ namespace GLib {
else if (type == GType.UInt64.Val)
g_value_set_uint64 (ref this, (ulong) value);
else if (type == GType.ULong.Val)
SetULongForPlatform ((ulong) value);
SetULongForPlatform (Convert.ToUInt64 (value));
else if (GType.Is (type, GType.Enum))
g_value_set_enum (ref this, (int)value);
else if (GType.Is (type, GType.Flags))