jckarter / clay

The Clay programming language
http://claylabs.com/clay
Other
404 stars 34 forks source link

hex(UInt128) is broken #314

Closed stepancheg closed 12 years ago

stepancheg commented 12 years ago
import printer.*;
import printer.formatter.*;

main() {
    var ull = Union[UInt128, Array[UInt8, 16]](array(1_uss, 2_uss, 3_uss, 4_uss, 5_uss, 6_uss, 7_uss, 8_uss, 9_uss, 10_uss, 11_uss, 12_uss, 13_uss, 14_uss, 15_uss, 16_uss)).0;
    println(ull);
    println(hex(ull));
}

prints

21345817372864405881847059188222722561
4030201