mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-04 21:54:27 +08:00
back out one of those changes
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user