diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-16 05:29:36 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-19 20:36:50 (GMT) |
commit | 5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b (patch) | |
tree | 032b9a24f96e43813f1c5e90b325cbd4f76b9ae3 /Source | |
parent | 390bc3244fd94d687bd48860eb2a70ad9674d755 (diff) | |
download | CMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.zip CMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.tar.gz CMake-5b7ff35c4d8b41e3d08305b91b0e5973f2e3906b.tar.bz2 |
cmMakefile: Don't expect the VarStack iterator to support size().
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMakefile.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e84ea4e..1a192f5 100644 --- a/Source/cmMakefile.cxx +++ b/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()) { |