Skip to content

parsing numbers, wrong code #9

Description

@vaclavt

I think there is error in parsing numbers on line std::string n = s.substr(save_ptr, ptr);
which sometimes evaluates int as float (when somewhere later in string there is a "."..
I think there should be (ptr - save_ptr) as a second parameter to substr.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions