Use proper encoding of source location.

This commit is contained in:
Bartosz Taudul 2018-03-04 17:17:25 +01:00
parent 9170cfd943
commit a374114358

View File

@ -396,7 +396,7 @@ std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) cons
{ {
auto it = m_data.sourceLocationPayloadMap.find( srcloc ); auto it = m_data.sourceLocationPayloadMap.find( srcloc );
assert( it != m_data.sourceLocationPayloadMap.end() ); assert( it != m_data.sourceLocationPayloadMap.end() );
match.push_back( it->second ); match.push_back( -int32_t( it->second + 1 ) );
} }
} }