mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-29 06:01:16 -03:00
lint: deal with "double negative" warnings
This commit is contained in:
@@ -247,7 +247,7 @@ void job_set_flag(job_t *j, unsigned int flag, int set) {
|
||||
}
|
||||
}
|
||||
|
||||
int job_get_flag(const job_t *j, unsigned int flag) { return !!(j->flags & flag); }
|
||||
int job_get_flag(const job_t *j, unsigned int flag) { return static_cast<bool>(j->flags & flag); }
|
||||
|
||||
int job_signal(job_t *j, int signal) {
|
||||
pid_t my_pid = getpid();
|
||||
|
||||
Reference in New Issue
Block a user