X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Floader%2FTypeDescription.cpp;h=07be7b29f165dd091e36d78e292851377546c858;hb=ac3755adc509404528ef7de58695bf8e3bfb7dcd;hp=c69efbe9b443170d6472d065c6ff717afa93bd42;hpb=22be995eefbf6e27f76606226422aaf3fbaa5b80;p=l2e.git diff --git a/src/loader/TypeDescription.cpp b/src/loader/TypeDescription.cpp index c69efbe..07be7b2 100644 --- a/src/loader/TypeDescription.cpp +++ b/src/loader/TypeDescription.cpp @@ -51,10 +51,10 @@ std::ptrdiff_t TypeDescription::SupertypeOffset(int id) const { } -vector Interpreter::typeDescriptions; +vector TypeDescription::typeDescriptions; TypeDescription &TypeDescription::CreateOrGet(const std::string &name) { - for (vector::const_iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) { + for (vector::iterator i(typeDescriptions.begin()), end(typeDescriptions.end()); i != end; ++i) { if (i->name == name) { return *i; } @@ -74,7 +74,7 @@ int TypeDescription::GetTypeId(const std::string &name) { } const TypeDescription &TypeDescription::Get(int id) { - assert(id >= 0 && id < typeDescriptions.size()); + assert(id >= 0 && id < int(typeDescriptions.size())); return typeDescriptions[id]; }