Skip to content

#fmt float broken on Ubuntu Precise #1372

Closed
@lht

Description

@lht

Assert failed on Ubuntu Precise x86_64. Works fine on another Ubuntu 11.04 (i386).

use std;
fn main() {
  std::io::println(#fmt("%f", 5.82));
  assert(#fmt("%f", 5.82) == "5.82");
}
0
rust: upcall fail 'Assertion "" +
    extfmt::rt::conv_float({flags: [extfmt::rt::flag_none],
                            width: extfmt::rt::count_implied,
                            precision: extfmt::rt::count_implied,
                            ty: extfmt::rt::ty_default,}, 5.82) == "5.82" failed', fmtf.rs:4
rust: domain main @0xa02520 root task failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-linuxOperating system: Linux

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions