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

parser: fix parsing of big integer values #208

Closed
wants to merge 2 commits into from

Conversation

belochub
Copy link
Member

@belochub belochub commented Jun 3, 2017

Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: #175

Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: #175
@belochub belochub added the parser label Jun 3, 2017
@belochub belochub added this to the 1.0.0 milestone Jun 3, 2017
@belochub belochub requested a review from aqrln June 3, 2017 12:43
Copy link
Member

@lundibundi lundibundi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, GJ 👍

@belochub
Copy link
Member Author

belochub commented Jun 6, 2017

@aqrln, ping.

Copy link
Member

@aqrln aqrln left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry for the delay. LGTM with a tiny nit, thanks.

break;
}
current_digit_value = current_digit <= '9' ? current_digit - '0' :
current_digit - 'A' + 10;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this should be indented with four spaces.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aqrln, cpplint didn't complain about it, so I left it like that.
What do you say about moving it to the right, right after the question sign?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@belochub sounds good to me

belochub added a commit that referenced this pull request Jun 6, 2017
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: #175
PR-URL: #208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
@belochub
Copy link
Member Author

belochub commented Jun 6, 2017

Landed in 417ef60.

@belochub belochub closed this Jun 6, 2017
@belochub belochub deleted the parser-fix-big-integer-parsing branch June 6, 2017 16:35
belochub added a commit that referenced this pull request Jan 22, 2018
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: #175
PR-URL: #208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
belochub added a commit that referenced this pull request Jan 22, 2018
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: #175
PR-URL: #208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
@belochub belochub mentioned this pull request Jan 22, 2018
belochub added a commit to metarhia/mdsf that referenced this pull request Jul 19, 2018
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: metarhia/jstp#175
PR-URL: metarhia/jstp#208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
belochub added a commit to metarhia/mdsf that referenced this pull request Jul 19, 2018
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: metarhia/jstp#175
PR-URL: metarhia/jstp#208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
belochub added a commit to metarhia/mdsf that referenced this pull request Jul 21, 2018
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.

Refs: metarhia/jstp#175
PR-URL: metarhia/jstp#208
Reviewed-By: Denys Otrishko <shishugi@gmail.com>
Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants