silence compiler warnings about bool vs int in AtC lib

This commit is contained in:
Axel Kohlmeyer
2018-05-10 18:48:47 -04:00
parent 40a8b1af79
commit 724ade0af3

View File

@ -67,9 +67,9 @@ void SparseMatrix<T>::_create(INDEX size, INDEX nrows)
// assign memory to hold matrix // assign memory to hold matrix
try try
{ {
_val = (_size*nrows) ? new T [_size] : NULL; _val = (_size && nrows) ? new T [_size] : NULL;
_ia = (_size*nrows) ? new INDEX [_nRowsCRS+1] : NULL; _ia = (_size && nrows) ? new INDEX [_nRowsCRS+1] : NULL;
_ja = (_size*nrows) ? new INDEX [_size] : NULL; _ja = (_size && nrows) ? new INDEX [_size] : NULL;
} }
catch (std::exception &e) catch (std::exception &e)
{ {