-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
Implement additional function for parsing integer values which cannot be parsed using standard library functions. Refs: #175
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, GJ 👍
@aqrln, ping. |
There was a problem hiding this 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.
src/jsrs_parser.cc
Outdated
break; | ||
} | ||
current_digit_value = current_digit <= '9' ? current_digit - '0' : | ||
current_digit - 'A' + 10; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Landed in 417ef60. |
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>
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>
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>
Implement additional function for parsing integer values which
cannot be parsed using standard library functions.
Refs: #175