corrections for last commit

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9867 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-07-18 21:06:55 +00:00
commit edd82d41f2

View file

@ -212,7 +212,7 @@
}
void setitem(int index, const value_type& val) throw (std::out_of_range) {
if (index>=0 && index<(int)self->size())
(*self)[index] = value;
(*self)[index] = val;
else
throw std::out_of_range("index");
}
@ -232,7 +232,7 @@
}
void Insert(int index, const value_type& x) throw (std::out_of_range) {
if (index>=0 && index<(int)self->size()+1)
self->insert(self->begin()+index, value);
self->insert(self->begin()+index, x);
else
throw std::out_of_range("index");
}