Skip to content

[dispatch] Fix + and - operations on DispatchTime and DispatchWallTime #6961

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 1 commit into from
Jan 21, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jan 21, 2017

... for the cases where seconds parameter is NaN or infinite.

rdar://problem/29764171

... for the cases where `seconds` parameter is NaN or infinite.
Fixes <rdar://problem/29764171>
@moiseev
Copy link
Contributor Author

moiseev commented Jan 21, 2017

@swift-ci Please test

@moiseev moiseev merged commit 89840c7 into swiftlang:master Jan 21, 2017
@moiseev moiseev deleted the nan-time branch January 21, 2017 05:44
moiseev added a commit to moiseev/swift that referenced this pull request Jan 31, 2017
swiftlang#6961)

... for the cases where `seconds` parameter is NaN or infinite.
Fixes <rdar://problem/29764171>
CCC: <rdar://problem/30276292>
@gparker42
Copy link
Contributor

This is not the behavior I would expect for x + Double.nan.

@moiseev
Copy link
Contributor Author

moiseev commented Jan 31, 2017

I believe this is the behavior in libdispatch.

@gparker42
Copy link
Contributor

gparker42 commented Jan 31, 2017

I would not be surprised if C libdispatch did this inadvertently due to C's lack of checking. It doesn't seem useful for Swift's interface to duplicate that.

@moiseev
Copy link
Contributor Author

moiseev commented Jan 31, 2017

/cc @ktopley-apple and @mwwa

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.

2 participants