summaryrefslogtreecommitdiff
path: root/TAO/tao/Bounded_Object_Reference_Sequence_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Bounded_Object_Reference_Sequence_T.h')
-rw-r--r--TAO/tao/Bounded_Object_Reference_Sequence_T.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/Bounded_Object_Reference_Sequence_T.h b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
index 1a7860d0efa..77f266f727d 100644
--- a/TAO/tao/Bounded_Object_Reference_Sequence_T.h
+++ b/TAO/tao/Bounded_Object_Reference_Sequence_T.h
@@ -67,7 +67,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 {