Commit 724ade0a authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warnings about bool vs int in AtC lib

parent 40a8b1af
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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)
  {