From 67dd0a98436a21b597d0732588bde2dfa38c3e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz> Date: Sun, 20 Mar 2022 19:09:10 +0100 Subject: [PATCH] data_experimental: silence gcc12 about implicit int -> unsigned --- .../stringology/CompactSuffixAutomatonTerminatingSymbol.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alib2data_experimental/src/indexes/stringology/CompactSuffixAutomatonTerminatingSymbol.h b/alib2data_experimental/src/indexes/stringology/CompactSuffixAutomatonTerminatingSymbol.h index 7286bab82e..139ed20f56 100644 --- a/alib2data_experimental/src/indexes/stringology/CompactSuffixAutomatonTerminatingSymbol.h +++ b/alib2data_experimental/src/indexes/stringology/CompactSuffixAutomatonTerminatingSymbol.h @@ -47,7 +47,8 @@ public: void insertVertex(unsigned vertexNumber, const ext::map<ext::pair< int,int>,int> & edges) { for(const auto & edge : edges ) { - m_delta[vertexNumber].insert({{edge.first.first - 1, edge.first.second - 1}, edge.second}); // to match indexing the string from 0 + // FIXME the construction algo works on integers but the datastructure is defined with unsigneds + m_delta[vertexNumber].insert({{edge.first.first - 1, edge.first.second - 1}, static_cast < unsigned > ( edge.second ) }); // to match indexing the string from 0 } } -- GitLab