#1068: Garbled data with long long <> Bignum conversions ---------------------------------+------------------------------------------ Reporter: dev@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ {{{ #!/usr/bin/env macruby n = 0x8C2CACEFCD8BBABA m = NSNumber.numberWithUnsignedLongLong n puts "%016X" % n puts "%016X" % m puts "%016X" % m.unsignedLongLongValue }}} Gives: {{{ 8C2CACEFCD8BBABA 0C2CACEFCD8BBABA 0C2CACEFCD8BBABA }}} I believe both signed and unsigned long longs are affected. The damage is always in the last (highest) byte. Some numbers (with a non-zero value in the 8th byte) still convert fine. Mailing list thread: http://lists.macosforge.org/pipermail/macruby- devel/2010-December/006637.html -- Ticket URL: <http://www.macruby.org/trac/ticket/1068> MacRuby <http://macruby.org/>