forked from lijiext/lammps
silence compiler warnings about bool vs int in AtC lib
This commit is contained in:
parent
40a8b1af79
commit
724ade0af3
|
@ -67,9 +67,9 @@ void SparseMatrix<T>::_create(INDEX size, INDEX nrows)
|
|||
// assign memory to hold matrix
|
||||
try
|
||||
{
|
||||
_val = (_size*nrows) ? new T [_size] : NULL;
|
||||
_ia = (_size*nrows) ? new INDEX [_nRowsCRS+1] : NULL;
|
||||
_ja = (_size*nrows) ? new INDEX [_size] : NULL;
|
||||
_val = (_size && nrows) ? new T [_size] : NULL;
|
||||
_ia = (_size && nrows) ? new INDEX [_nRowsCRS+1] : NULL;
|
||||
_ja = (_size && nrows) ? new INDEX [_size] : NULL;
|
||||
}
|
||||
catch (std::exception &e)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue