Forum: Ruby-Gnome 2 Bug in glib/src/rbglib_maincontext.c?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
3807680355002d0d5e8314a97333587e?d=identicon&s=25 Nikolai Weibull (Guest)
on 2009-03-19 16:34
(Received via mailing list)
Line 640 reads

    priority = NIL_P(rb_priority) ? G_PRIORITY_DEFAULT :
INT2NUM(rb_priority);

Shouldn’t that be NUM2INT(rb_priority)?

Same gose for line 664.
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-03-20 16:58
(Received via mailing list)
Hi,

In <dbfc82860903190832y59faa1e1jee142aba58ee6129@mail.gmail.com>
  "[ruby-gnome2-devel-en] Bug in glib/src/rbglib_maincontext.c?" on Thu,
19 Mar 2009 16:32:31 +0100,
  Nikolai Weibull <now@bitwi.se> wrote:

> Line 640 reads
>
>     priority = NIL_P(rb_priority) ? G_PRIORITY_DEFAULT : INT2NUM(rb_priority);
>
> Shouldn’t that be NUM2INT(rb_priority)?
>
> Same gose for line 664.

Thanks for reporting.
They have been fixed in trunk.

--
kou
This topic is locked and can not be replied to.