Skip to content

Stop zeroing out the scratch buffer in float_to_decimal_common #41259

Description

@bzbarsky

float_to_decimal_common in src/libcore/fmt/float.rs does this:

let mut buf = [0; 1024];

which zeroes out the big buffer. Given that it's a scratch buffer, there shouldn't be a reason to do that, I would think.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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