Skip to content

Strange/broken serialization of min_int #20

@hcarty

Description

@hcarty

OCaml 4.02.3 on 64bit Linux, yojson 1.2.1 installed with opam

utop # Yojson.Safe.to_string @@ `Int min_int
- : string = "-,*//*(*0/(,.)-()'0,"
utop # Yojson.Safe.to_string @@ `Int (min_int + 1)
- : string = "-4611686018427387903"
utop # Yojson.Safe.to_string @@ `Int max_int
- : string = "4611686018427387903"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions