From 9a12ff4519d103d6c0e2234d63428d103e6d9571 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Tue, 9 Jul 2019 12:29:20 +0200
Subject: [PATCH] remove not needed expression fragments

---
 alib2algo/src/string/properties/BorderArray.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/alib2algo/src/string/properties/BorderArray.h b/alib2algo/src/string/properties/BorderArray.h
index f41a971da6..f26d6718fa 100644
--- a/alib2algo/src/string/properties/BorderArray.h
+++ b/alib2algo/src/string/properties/BorderArray.h
@@ -35,10 +35,10 @@ ext::vector<size_t> BorderArray::construct(const string::LinearString < SymbolTy
 	res[1] = 0;
 	for(size_t i = 1; i < w.size(); i++) {
 		size_t b = res[i];
-		while (b > 0 && w[i + 1 - 1] != w[b + 1 - 1])
+		while (b > 0 && w[i] != w[b])
 			b = res[b];
 
-		if(w[i + 1 - 1] == w[b + 1 - 1])
+		if(w[i] == w[b])
 			res[i + 1] = b + 1;
 		else
 			res[i + 1] = 0;
-- 
GitLab