mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
Remove an unnecessary typecast
This commit is contained in:
parent
28837a8b30
commit
3345f5d0d0
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ int wgetopter_t::_wgetopt_internal(int argc, wchar_t **argv, const wchar_t *opts
|
|||
exchange them so that the options come first. */
|
||||
|
||||
if (first_nonopt != last_nonopt && last_nonopt != woptind)
|
||||
exchange((wchar_t **) argv);
|
||||
exchange(argv);
|
||||
else if (last_nonopt != woptind)
|
||||
first_nonopt = woptind;
|
||||
|
||||
|
@ -330,7 +330,7 @@ int wgetopter_t::_wgetopt_internal(int argc, wchar_t **argv, const wchar_t *opts
|
|||
woptind++;
|
||||
|
||||
if (first_nonopt != last_nonopt && last_nonopt != woptind)
|
||||
exchange((wchar_t **) argv);
|
||||
exchange(argv);
|
||||
else if (first_nonopt == last_nonopt)
|
||||
first_nonopt = woptind;
|
||||
last_nonopt = argc;
|
||||
|
|
Loading…
Reference in a new issue