summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
Diffstat (limited to 'cppu')
-rw-r--r--cppu/inc/com/sun/star/uno/Sequence.hxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/cppu/inc/com/sun/star/uno/Sequence.hxx b/cppu/inc/com/sun/star/uno/Sequence.hxx
index 498109a0321c..3a006a654e5c 100644
--- a/cppu/inc/com/sun/star/uno/Sequence.hxx
+++ b/cppu/inc/com/sun/star/uno/Sequence.hxx
@@ -89,6 +89,7 @@ inline Sequence< E >::Sequence( const E * pElements, sal_Int32 len )
template< class E >
inline Sequence< E >::Sequence( sal_Int32 len )
{
+ assert( len >= 0 );
const Type & rType = ::cppu::getTypeFavourUnsigned( this );
#if ! defined EXCEPTIONS_OFF
sal_Bool success =