aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/apache/arrow/patches/fix-unassignable-expression.patch
blob: 27239ffa91236d6f4caed1da02f3fccb40f68a4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/cpp/src/arrow/filesystem/mockfs.cc
+++ b/cpp/src/arrow/filesystem/mockfs.cc
@@ -322,7 +322,9 @@ class MockFileSystem::Impl {
       return nullptr;
     }
     size_t consumed;
-    auto entry = FindEntry(parts.begin(), --parts.end(), &consumed);
+    auto last = parts.end();
+    last--;
+    auto entry = FindEntry(parts.begin(), last, &consumed);
     return (consumed == parts.size() - 1) ? entry : nullptr;
   }