Skip to content

Overflow during printing floats in the wasm backend #1331

@ubaidsk

Description

@ubaidsk

The wasm backend prints floats by first printing the integral part and then printing the fractional part (by converting it also to an integer). The backend then reuses print_i64 to print these integers. This works for smaller floats, but fails for floats where the integral part does not fit into an i64.

This was discovered/discussed at #1325 (comment) and #1325 (comment).

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