diff options
Diffstat (limited to 'TAO/tao/Bounded_Basic_String_Sequence_T.h')
-rw-r--r-- | TAO/tao/Bounded_Basic_String_Sequence_T.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/Bounded_Basic_String_Sequence_T.h b/TAO/tao/Bounded_Basic_String_Sequence_T.h index 14ca643f6e3..c36dcb19587 100644 --- a/TAO/tao/Bounded_Basic_String_Sequence_T.h +++ b/TAO/tao/Bounded_Basic_String_Sequence_T.h @@ -65,7 +65,10 @@ public: /// @copydoc details::generic_sequence::length inline void length(CORBA::ULong length) { implementation_type::range::check_length(length, MAX); - impl_.length(length); + if (MAX >= length) + { + impl_.length(length); + } } /// @copydoc details::generic_sequence::operator[] inline const_element_type operator[](CORBA::ULong i) const { |