Use proper type in StringKey initialization.

This commit is contained in:
Bartosz Taudul 2022-08-08 18:47:11 +02:00
parent 4cd36ecdea
commit 259672abc6
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -685,7 +685,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
auto dst = m_slab.Alloc<char>( ssz+1 );
f.Read( dst, ssz );
dst[ssz] = '\0';
m_data.stringMap.emplace( charutil::StringKey { dst, ssz }, i );
m_data.stringMap.emplace( charutil::StringKey { dst, size_t( ssz ) }, i );
m_data.stringData[i] = ( dst );
pointerMap.emplace( ptr, dst );
}