[Pidgin] #15530: Undefined conversion from double to enum

Pidgin trac at pidgin.im
Mon Feb 25 21:03:15 EST 2013


#15530: Undefined conversion from double to enum
--------------------+--------------------------
 Reporter:  ari     |      Owner:  rekkanoryo
     Type:  defect  |     Status:  new
Milestone:          |  Component:  unclassified
  Version:  2.10.7  |   Keywords:
--------------------+--------------------------
 From http://bugs.debian.org/701671:

 While building the package using our research compiler infrastructure we
 noticed
 the following undefined conversion:

 In pidgin_notify_searchresults_new_rows of file pidgin/gtknotify.c, a call
 to
 pidgin_create_prpl_icon is made:

 pixbuf = pidgin_create_prpl_icon(purple_connection_get_account(gc), 0.5);

 (see also
 http://hg.pidgin.im/pidgin/main/file/270d16117280/pidgin/gtknotify.c#l918)

 The second argument, however, should be an enum value; the conversion from
 double (the constant 0.5) to enums in undefined, possibly causing
 arbitrary
 behaviour.

-- 
Ticket URL: <https://developer.pidgin.im/ticket/15530>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list