mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -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
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user