From 4a6a354675ea0165a890c04a8f74e969bbb26598 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 29 May 2019 20:27:03 +0200 Subject: [PATCH] Placate compiler warnings --- src/expand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/expand.cpp b/src/expand.cpp index 34cd63edf..7b4e63076 100644 --- a/src/expand.cpp +++ b/src/expand.cpp @@ -214,7 +214,7 @@ static size_t parse_slice(const wchar_t *in, wchar_t **end_ptr, std::vector -1 != tmp > -1) { + if ((tmp1 > -1) != (tmp > -1)) { direction = tmp1 > -1 ? -1 : 1; } else { // Clamp to array size when not forcing direction