[indexer] Fix maximum byte value inside indexer code, to support MSVC 2013.

This commit is contained in:
Artyom Polkovnikov 2014-12-30 20:33:44 +03:00 committed by Alex Zolotarev
parent bc8a38a402
commit a6b96a8b2a

View file

@ -67,7 +67,7 @@ namespace feature
template <class ArchiveT> void DeserializeFromMWM(ArchiveT & ar)
{
uint8_t header[2] = {0};
char buffer[numeric_limits<uint8_t>::max()] = {0};
char buffer[uint8_t(-1)] = {0};
do
{
ar.Read(header, sizeof(header));