GNOME Bugzilla – Bug 725972
Handle some missing fundamental types in GObject [de]serialization
Last modified: 2014-12-30 11:30:19 UTC
Created attachment 271348 [details] [review] Patch to handle gulong/glong/guint64 when [de]serializing pspecs. Added some cases for glong and gulong in object deserialization, these were already handled in serialization but missing in deserialization. Also added handling of guint64, probably not ideal as a guint64 may not entirely fit into a gint64, however [de]serializing with a simple cast by default is probably better than not handling the type (it can be overridden by serializable implementations if guint64 precision is really important for a given class).
I believe I have come across this bug too, I have a lot of models representing HTTP objects and use gint and guint as appropriate, and the serialization process seems to break on the guints.
Created attachment 291056 [details] Test case involving glong, gulong, gint64, and guint64.
attachment pushed to master, thanks for the patch.