Forum: Ruby-Gnome 2 MAXUINT

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.
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-26 22:19
(Received via mailing list)
Attachment: max.patch (2 KB)
MAXUINT is defined as rb_define_const(mGLib, "MAXUINT",
INT2FIX(G_MAXUINT)); which make it -1

It is supposed to be unsigned and be 4294967295, which make an unit test
fail in pango.

I fixed some other ones, but don't know what would be correct for
MAXFLOAT and MAXDOUBLE
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-27 13:45
(Received via mailing list)
Hi,

2009/5/27 Pascal Terjan <pterjan@linuxfr.org>:
> MAXUINT is defined as rb_define_const(mGLib, "MAXUINT",
> INT2FIX(G_MAXUINT)); which make it -1
>
> It is supposed to be unsigned and be 4294967295, which make an unit test
> fail in pango.

Could you commit the patch?

> I fixed some other ones, but don't know what would be correct for
> MAXFLOAT and MAXDOUBLE

What about DBL2NUM()?


Thanks,
--
kou
410b48431c65b22d7ae941abd79ac89d?d=identicon&s=25 Pascal Terjan (Guest)
on 2009-05-27 13:56
(Received via mailing list)
Le mercredi 27 mai 2009 à 20:44 +0900, Kouhei Sutou a écrit :
>
> > I fixed some other ones, but don't know what would be correct for
> > MAXFLOAT and MAXDOUBLE
>
> What about DBL2NUM()?

I add missed it, thanks

I committed the full patch
Ee6ffca720cc428d70247dcd7377dd48?d=identicon&s=25 Kouhei Sutou (Guest)
on 2009-05-27 14:50
(Received via mailing list)
Hi,

2009/5/27 Pascal Terjan <pterjan@linuxfr.org>:

> I committed the full patch

Thanks!

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