Committed, with argument changed so that we do:

args[0].convertToInteger().getLongValue()

 Many ruby functions need to work with classes which implement
type conversion functions (like to_int as in this case).

-Tom

On Wed, 19 Apr 2006, Ola Bini defenestrated me:

> Hi again!
> 
> A fix for this problem attached.
> 
> Regards
>  Ola Bini
> 
> ----- Original Message -----
> From: Ola Bini <[EMAIL PROTECTED]>
> Date: Wednesday, April 19, 2006 2:52 pm
> Subject: [Jruby-devel] Missing Fixnum.to_s(base)
> To: jruby-devel@lists.sourceforge.net
> 
> > Hi.
> > 
> > Fixnum seems to be missing handling of different bases.
> > 
> > Doing 10.to_s(16) should return "A" but raises an ArgumentError.
> > 
> > Regards
> > Ola Bini
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting 
> > languagethat extends applications into web and mobile media. Attend 
> > the live webcast
> > and join the prime developer group breaking into this new coding 
> > territory!http://sel.as-
> >
> us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642_______________________________________________
> > Jruby-devel mailing list
> > Jruby-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jruby-devel
> > 



-- 
+ http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist  | "Luck favors the prepared    |
|                              |  mind." -Louis Pasteur       |


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to