Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parsing numbers, wrong code #9

Open
vaclavt opened this issue May 19, 2021 · 0 comments
Open

parsing numbers, wrong code #9

vaclavt opened this issue May 19, 2021 · 0 comments

Comments

@vaclavt
Copy link

vaclavt commented May 19, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant