Loading src/TNL/Containers/ArrayView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ void ArrayView< Value, Device, Index >:: bind( ValueType* data, IndexType size ) { TNL_ASSERT_GE( size, 0, "ArrayView size was initialized with a negative size." ); TNL_ASSERT_GE( size, ( IndexType ) 0, "ArrayView size was initialized with a negative size." ); TNL_ASSERT_TRUE( (data == nullptr && size == 0) || (data != nullptr && size > 0), "ArrayView was initialized with a positive address and zero size or zero address and positive size." ); Loading src/TNL/Containers/detail/ArrayAssignment.h +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ struct ArrayAssignment< Array, T, true > static void assign( Array& a, const T& t ) { TNL_ASSERT_EQ( a.getSize(), t.getSize(), "The sizes of the arrays must be equal." ); TNL_ASSERT_EQ( a.getSize(), ( decltype( a.getSize() ) ) t.getSize(), "The sizes of the arrays must be equal." ); // skip assignment of empty arrays if( a.getSize() == 0 ) return; Loading Loading
src/TNL/Containers/ArrayView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ void ArrayView< Value, Device, Index >:: bind( ValueType* data, IndexType size ) { TNL_ASSERT_GE( size, 0, "ArrayView size was initialized with a negative size." ); TNL_ASSERT_GE( size, ( IndexType ) 0, "ArrayView size was initialized with a negative size." ); TNL_ASSERT_TRUE( (data == nullptr && size == 0) || (data != nullptr && size > 0), "ArrayView was initialized with a positive address and zero size or zero address and positive size." ); Loading
src/TNL/Containers/detail/ArrayAssignment.h +1 −1 Original line number Diff line number Diff line Loading @@ -38,7 +38,7 @@ struct ArrayAssignment< Array, T, true > static void assign( Array& a, const T& t ) { TNL_ASSERT_EQ( a.getSize(), t.getSize(), "The sizes of the arrays must be equal." ); TNL_ASSERT_EQ( a.getSize(), ( decltype( a.getSize() ) ) t.getSize(), "The sizes of the arrays must be equal." ); // skip assignment of empty arrays if( a.getSize() == 0 ) return; Loading