Skip to content

tests: correct the check function (NFCI) #520

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
Sep 18, 2019

Conversation

compnerd
Copy link
Member

The tests were using test_double_less_than_or_equal which raised a warning
when building on Linux-x86_64:

tests/dispatch_select.c:72:51: error: implicit conversion from 'ssize_t' (aka 'long') to 'double' may lose precision
tests/dispatch_select.c:131:61: error: implicit conversion from 'long' to 'double' may lose precision

Use test_sizet_less_than_or_equal instead.

The tests were using `test_double_less_than_or_equal` which raised a warning
when building on Linux-x86_64:

```
tests/dispatch_select.c:72:51: error: implicit conversion from 'ssize_t' (aka 'long') to 'double' may lose precision
tests/dispatch_select.c:131:61: error: implicit conversion from 'long' to 'double' may lose precision
```

Use `test_sizet_less_than_or_equal` instead.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@ktopley-apple - okay to merge?

@ktopley-apple ktopley-apple merged commit f6e30ed into swiftlang:master Sep 18, 2019
@compnerd compnerd deleted the size-is-not-double branch September 18, 2019 22:50
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.

3 participants