Commit 45d5810f authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Tomáš Oberhuber
Browse files

Added explicit conversion to RealType in SparseMatrixView::forElements.

parent c5b307bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -601,7 +601,7 @@ forElements( IndexType begin, IndexType end, Function& function ) const
      if( localIdx < columns )
      {
         if( isBinary() )
            function( rowIdx, localIdx, columns_view[ globalIdx ], 1 );
            function( rowIdx, localIdx, columns_view[ globalIdx ], ( RealType ) 1.0 );
         else
            function( rowIdx, localIdx, columns_view[ globalIdx ], values_view[ globalIdx ] );
      }