[Telepathy] [Bug 19367] time_t is assumed to be always 32bit in text-mixin

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jan 7 09:24:59 PST 2009


http://bugs.freedesktop.org/show_bug.cgi?id=19367





--- Comment #3 from Simon McVittie <simon.mcvittie at collabora.co.uk>  2009-01-07 09:24:59 PST ---
Aha! OK, the bug is actually that we assume time_t to be the same size as guint
(which may or may not be 32 bits - dbus-glib uses guint for type 'u' even if
guint is actually larger than that).

Suggested patch:

       dbus_g_type_struct_set (&val,
           0, msg->id,
-          1, msg->timestamp,
+          1, (guint) msg->timestamp,
           2, msg->sender,
           3, msg->type,
           4, msg->flags,
           5, msg->text,
           G_MAXUINT);


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Telepathy mailing list