# Maxuint

**URL:** <https://www.ruby-forum.com/t/maxuint/168867>\
**Category:** Ruby-Gnome 2\
**Created:** [May 26, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/maxuint/168867 "2009-05-26T22:19:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pascal\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@Pascal\_T](https://www.ruby-forum.com/u/Pascal_T)\
**Post date:** [May 26, 2009, 10:19pm UTC](https://www.ruby-forum.com/t/maxuint/168867/1 "2009-05-26T22:19:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Pascal\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@Pascal\_T](https://www.ruby-forum.com/u/Pascal_T)\
**Post date:** [May 27, 2009, 1:45pm UTC](https://www.ruby-forum.com/t/maxuint/168867/2 "2009-05-27T13:45:40Z")

</div>

Hi,

2009/5/27 Pascal T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> 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

---

<div class="post-metadata">

**Author:** ![Pascal\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@Pascal\_T](https://www.ruby-forum.com/u/Pascal_T)\
**Post date:** [May 27, 2009, 1:56pm UTC](https://www.ruby-forum.com/t/maxuint/168867/3 "2009-05-27T13:56:50Z")

</div>

Le mercredi 27 mai 2009 à 20:44 +0900, Kouhei S. 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

---

<div class="post-metadata">

**Author:** ![Pascal\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@Pascal\_T](https://www.ruby-forum.com/u/Pascal_T)\
**Post date:** [May 27, 2009, 2:50pm UTC](https://www.ruby-forum.com/t/maxuint/168867/4 "2009-05-27T14:50:26Z")

</div>

Hi,

2009/5/27 Pascal T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> I committed the full patch

Thanks!

–  
kou
