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

[Java] Fix digit count for zero. #251

Merged
merged 2 commits into from Nov 18, 2021

Conversation

vyazelenko
Copy link
Contributor

This PR fixes digitCount(int) and digitCount(long) functions to return 1 when the input value is 0. It also moves lookup table generation into the static block.

@mjpt777 mjpt777 merged commit 4d75d85 into real-logic:master Nov 18, 2021
@vyazelenko vyazelenko deleted the fix-digit-count branch November 18, 2021 13:23
vyazelenko added a commit that referenced this pull request Nov 20, 2021
* [Java] Fix digitCount(0) to return 1.

* [Java] Generate lookup tables for digitCount functions upon startup.

(cherry picked from commit 4d75d85)
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

Successfully merging this pull request may close these issues.

None yet

2 participants