Skip to content

Use after move in format-inl.h #2278

Description

@rsjaffe

int num_bigits = static_cast<int>(bigits_.size());
uses bigits_ after it has been moved. There is further use of bigits_ in that function as well, some of which may be appropriate, some not.

void square() {
    basic_memory_buffer<bigit, bigits_capacity> n(std::move(bigits_));
    int num_bigits = static_cast<int>(bigits_.size());

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