mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Fix a couple of compiler warnings with MSVC
This commit is contained in:
parent
ca0949aa23
commit
5b9ac3082b
@ -244,10 +244,10 @@ class Serializer {
|
|||||||
inline int
|
inline int
|
||||||
namespace_index(const char *ns, size_t nslen) {
|
namespace_index(const char *ns, size_t nslen) {
|
||||||
for (size_t i = 0; i < this->nsmap.size(); i++) {
|
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));
|
this->nsmap.push_back(std::string(ns, nslen));
|
||||||
return this->nsmap.size() - 1;
|
return ((int)(this->nsmap.size())) - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user