Fix a couple of compiler warnings with MSVC

This commit is contained in:
Kovid Goyal 2020-05-26 21:25:29 +05:30
parent ca0949aa23
commit 5b9ac3082b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -244,10 +244,10 @@ class Serializer {
inline int
namespace_index(const char *ns, size_t nslen) {
for (size_t i = 0; i < this->nsmap.size(); i++) {
if (namespaces_are_equal(this->nsmap[i].c_str(), ns, nslen)) return i;
if (namespaces_are_equal(this->nsmap[i].c_str(), ns, nslen)) return (int)i;
}
this->nsmap.push_back(std::string(ns, nslen));
return this->nsmap.size() - 1;
return ((int)(this->nsmap.size())) - 1;
}
bool