Bug in glib/src/rbglib_maincontext.c?

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.

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Bug in glib/src/rbglib_maincontext.c?” on Thu,
19 Mar 2009 16:32:31 +0100,
Nikolai W. [email protected] 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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs