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

Fix runtime error creating arrays of negative length #258

Merged
merged 1 commit into from Jun 26, 2015

Conversation

Projects
None yet
2 participants
@mgold
Contributor

mgold commented Jun 3, 2015

This one-character change (plus test) fixes a runtime error when creating arrays of negative length with Array.initialize or Array.repeat. This behavior is now consistent with List.repeat.

@mgold

This comment has been minimized.

Show comment
Hide comment
@mgold

mgold Jun 3, 2015

Contributor

This will fix #175.

Contributor

mgold commented Jun 3, 2015

This will fix #175.

@mgold mgold referenced this pull request Jun 3, 2015

Closed

List of known runtime errors #913

1 of 7 tasks complete

evancz pushed a commit that referenced this pull request Jun 26, 2015

Merge pull request #258 from mgold/array-negative-length
Fix runtime error creating arrays of negative length

@evancz evancz merged commit a0d807e into elm:master Jun 26, 2015

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@mgold mgold deleted the mgold:array-negative-length branch Jun 26, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment