mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 18:43:39 +02:00
Fix a couple of compiler warnings with MSVC
This commit is contained in:
parent
ca0949aa23
commit
5b9ac3082b
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Reference in a new issue