back out one of those changes

This commit is contained in:
Greg Landrum
2015-11-14 14:13:36 +01:00
parent 2a75463959
commit 80bb809b31

View File

@@ -75,7 +75,7 @@ namespace RDKit{
//! set the value at an index
void setVal(IndexType idx, int val){
if(idx>=d_length){
if(idx<0 || idx>=d_length){
throw IndexErrorException(static_cast<int>(idx));
}
if(val!=0){