Author: andrico
Date: Wed Oct 12 12:59:11 2016
New Revision: 5408

URL: http://svn.gna.org/viewcvs/getfem?rev=5408&view=rev
Log:
fixing run-time error: "cannot decrement an iterator"

Modified:
    trunk/getfem/src/gmm/gmm_vector.h

Modified: trunk/getfem/src/gmm/gmm_vector.h
URL: 
http://svn.gna.org/viewcvs/getfem/trunk/getfem/src/gmm/gmm_vector.h?rev=5408&r1=5407&r2=5408&view=diff
==============================================================================
--- trunk/getfem/src/gmm/gmm_vector.h   (original)
+++ trunk/getfem/src/gmm/gmm_vector.h   Wed Oct 12 12:59:11 2016
@@ -1093,7 +1093,7 @@
          if (ind != this->nb_stored() - 1) {
            it = this->begin() + ind;
            iterator ite = this->end(); --ite; iterator itee = ite; --itee; 
-           for (; ite != it; --ite, --itee) *ite = *itee;
+           for (; itee != it; --ite, --itee) *ite = *itee;
            *it = ev;
          }
        }


_______________________________________________
Getfem-commits mailing list
Getfem-commits@gna.org
https://mail.gna.org/listinfo/getfem-commits

Reply via email to