Explorar o código

cmMakefile: Don't expect the VarStack iterator to support size().

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
5b7ff35c4d
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      Source/cmMakefile.cxx

+ 1 - 2
Source/cmMakefile.cxx

@@ -105,9 +105,8 @@ public:
 
   bool RaiseScope(std::string const& var, const char* varDef, cmMakefile* mf)
   {
-    assert(this->VarStack.size() > 0);
-
     std::list<cmDefinitions>::reverse_iterator it = this->VarStack.rbegin();
+    assert(it != this->VarStack.rend());
     ++it;
     if(it == this->VarStack.rend())
       {