Skip to content

Truncate fix #1532

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

Merged
merged 2 commits into from
Apr 25, 2018
Merged

Truncate fix #1532

merged 2 commits into from
Apr 25, 2018

Conversation

nevil
Copy link
Contributor

@nevil nevil commented Apr 24, 2018

Originally reported by @DagAgren here #1297

  • Accepting truncating to any position, not just 0.
  • Reposition to the truncate offset.
  • Darwin throws exceptions on error so we use fatalError() instead of silently failing.

nevil added 2 commits April 24, 2018 07:26
The tests expect same behavior as on Darwin which was verified using DarwinCompatibilityTests.
- Accepting truncating to any position, not just 0.
- Reposition to the truncate offset.
- Darwin throws exceptions on error so we use fatalError() instead of silently failing.
@spevans
Copy link
Contributor

spevans commented Apr 24, 2018

@swift-ci please test

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit edf34ca into swiftlang:master Apr 25, 2018
@nevil nevil deleted the truncate-fix branch April 26, 2018 01:37
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.

4 participants