mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-30 14:53:11 +00:00
Placate compiler warnings
This commit is contained in:
parent
364bc3fd63
commit
4a6a354675
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector<long
|
||||||
// If only the beginning is negative, always go reverse.
|
// If only the beginning is negative, always go reverse.
|
||||||
// If only the end, always go forward.
|
// If only the end, always go forward.
|
||||||
// Prevents `[x..-1]` from going reverse if less than x elements are there.
|
// Prevents `[x..-1]` from going reverse if less than x elements are there.
|
||||||
if (tmp1 > -1 != tmp > -1) {
|
if ((tmp1 > -1) != (tmp > -1)) {
|
||||||
direction = tmp1 > -1 ? -1 : 1;
|
direction = tmp1 > -1 ? -1 : 1;
|
||||||
} else {
|
} else {
|
||||||
// Clamp to array size when not forcing direction
|
// Clamp to array size when not forcing direction
|
||||||
|
|
Loading…
Reference in a new issue