mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
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:
parent
95bd0d6271
commit
95a430c74d
@ -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.
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user