diff options
author | Artyom Polkovnikov <artyom.polkovnikov@gmail.com> | 2014-12-30 20:33:44 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:35:56 +0300 |
commit | a6b96a8b2acee1e07ba022d8be351a82ce999dfb (patch) | |
tree | 8318d652afb3095303b81405c4f69d4fcd49147d /indexer | |
parent | bc8a38a402e5c0a2d2a03804a68f097a04804582 (diff) |
[indexer] Fix maximum byte value inside indexer code, to support MSVC 2013.
Diffstat (limited to 'indexer')
-rw-r--r-- | indexer/feature_meta.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indexer/feature_meta.hpp b/indexer/feature_meta.hpp index 9916e84fe3..fed65ea7e4 100644 --- a/indexer/feature_meta.hpp +++ b/indexer/feature_meta.hpp @@ -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)); |