Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Truffle] Unable to sprintf bignum #2949

Closed
bjfish opened this issue May 16, 2015 · 2 comments
Closed

[Truffle] Unable to sprintf bignum #2949

bjfish opened this issue May 16, 2015 · 2 comments
Assignees
Milestone

Comments

@bjfish
Copy link
Contributor

bjfish commented May 16, 2015

Actual

$jt print '"%.32x" % 85060308944708794891899627827609206784'
core:/core/string.rb:12:in `sprintf': Truffle doesn't have a case for the org.jruby.truffle.pack.nodes.type.ToIntegerNodeGen node with values of type  Bignum(org.jruby.truffle.runtime.core.RubyBignum) (TypeError)
    from core:/core/string.rb:12:in `%'
    from -e:1:in `<main>'

Expected

ruby -e 'puts "%.32x" % 85060308944708794891899627827609206784'
3ffe0505000200000000000000000000
@bjfish
Copy link
Contributor Author

bjfish commented May 16, 2015

This is issue was found in ipaddr stdlib.

@chrisseaton
Copy link
Contributor

Fixed in 5c1ee15.

@chrisseaton chrisseaton added this to the truffle-dev milestone May 16, 2015
@chrisseaton chrisseaton self-assigned this May 16, 2015
@enebo enebo added this to the Non-Release milestone Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants