Mercurial > hg > orthanc
comparison Core/HttpServer/MultipartStreamReader.cpp @ 3406:8de071691d13
fix for visual studio 2008
author | s.jodogne@gmail.com |
---|---|
date | Sat, 08 Jun 2019 10:30:00 +0200 |
parents | 4e8205871967 |
children | 1787ad594063 |
comparison
equal
deleted
inserted
replaced
3405:408ffcb4038f | 3406:8de071691d13 |
---|---|
190 { | 190 { |
191 break; // Not enough data available to have a full part | 191 break; // Not enough data available to have a full part |
192 } | 192 } |
193 } | 193 } |
194 | 194 |
195 if (headersMatcher_.GetMatchEnd() + contentLength + 2 > corpusEnd) | 195 if (static_cast<ssize_t>(contentLength + 2) > std::distance(headersMatcher_.GetMatchEnd(), corpusEnd)) |
196 { | 196 { |
197 break; // Not enough data available to have a full part | 197 break; // Not enough data available to have a full part |
198 } | 198 } |
199 | 199 |
200 const char* p = headersMatcher_.GetPointerEnd() + contentLength; | 200 const char* p = headersMatcher_.GetPointerEnd() + contentLength; |