ceftests: Fix warning C4245: 'initializing': conversion from 'int' to 'size_t'

This commit is contained in:
Marshall Greenblatt
2020-08-28 11:44:56 -04:00
parent 37773afcc4
commit 17bc62666b

View File

@@ -113,7 +113,7 @@ void Send(const SendConfig& config, const RequestDoneCallback& callback) {
std::string GetPathURL(const std::string& url) { std::string GetPathURL(const std::string& url) {
const size_t index1 = url.find('?'); const size_t index1 = url.find('?');
const size_t index2 = url.find('#'); const size_t index2 = url.find('#');
size_t index = -1; int index = -1;
if (index1 >= 0 && index2 >= 0) { if (index1 >= 0 && index2 >= 0) {
index = std::min(index1, index2); index = std::min(index1, index2);
} else if (index1 >= 0) { } else if (index1 >= 0) {