mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
Fix incorrect comparison of function pointers
The sort routine was using the address of the **function pointer** `signal(int signal)` rather than the union payload of the same name. Perhaps one of the two should be renamed.
This commit is contained in:
parent
210dda2c4c
commit
ba44c4242f
1 changed files with 1 additions and 1 deletions
|
@ -428,7 +428,7 @@ void event_print(io_streams_t &streams, const wcstring &type_filter) {
|
|||
}
|
||||
switch (d1.type) {
|
||||
case event_type_t::signal:
|
||||
return d1.signal < d2.signal;
|
||||
return d1.param1.signal < d2.param1.signal;
|
||||
case event_type_t::process_exit:
|
||||
return d1.param1.pid < d2.param1.pid;
|
||||
case event_type_t::job_exit:
|
||||
|
|
Loading…
Reference in a new issue