Skip to content
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

Change CFRunLoopIsWaiting to return cf::Boolean #319

Merged
merged 2 commits into from
May 15, 2021

Conversation

erickt
Copy link
Contributor

@erickt erickt commented May 13, 2021

According to this doc, it's undefined behavior for a bool to be any
value other than 0 or 1. Since Boolean is ultimately an
unsigned char, this avoids the risk that this function could return a
true value that's non-zero but not 1.

erickt and others added 2 commits May 13, 2021 12:23
According to this [doc], it's undefined behavior for a `bool` to be any
value other than `0` or `1`. Since `Boolean` is ultimately an
`unsigned char`, this avoids the risk that this function could return a
`true` value that's non-zero but not `1`.

[doc]: https://doc.rust-lang.org/reference/behavior-considered-undefined.html
@0xpr03 0xpr03 merged commit 0553185 into notify-rs:main May 15, 2021
@0xpr03
Copy link
Member

0xpr03 commented May 15, 2021

Thanks!

@0xpr03
Copy link
Member

0xpr03 commented May 15, 2021

@erickt as you did all of the work, would you prefer a release for these last 3 PRs now ? Otherwise I'd wait until we gathered some more changes. Edit: for example after #310

@erickt erickt deleted the runloop branch May 17, 2021 17:41
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