Skip to content

Conversation

ehuisman
Copy link

@ehuisman ehuisman commented Jul 9, 2015

The maximum should only be assigned if the count of the current value is greater than the maximum, not every time it is not the same. The current test cases only return the correct results because the modes happen to be the last values of their respective input sets.

The maximum should only be assigned if the count of the current value
is greater than the maximum, not every time it is not the same.
@kgryte
Copy link
Contributor

kgryte commented Jul 13, 2015

@ehuisman This is correct. Thanks for catching this bug. Will merge this shortly and patch development branches.

kgryte added a commit that referenced this pull request Jul 13, 2015
[FIX] Maximum value assignment
@kgryte kgryte merged commit 4f6bb37 into compute-io:develop Jul 13, 2015
@ehuisman ehuisman deleted the develop branch July 14, 2015 07:11
@MichaelChambers
Copy link

@kgryte It appears this fix never made it to master or to npm.

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.

5 participants