summaryrefslogtreecommitdiff
path: root/TAO/tao/Bounded_Value_Sequence_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Bounded_Value_Sequence_T.h')
-rw-r--r--TAO/tao/Bounded_Value_Sequence_T.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/Bounded_Value_Sequence_T.h b/TAO/tao/Bounded_Value_Sequence_T.h
index 991b282a2e0..8d9c1a8d8fd 100644
--- a/TAO/tao/Bounded_Value_Sequence_T.h
+++ b/TAO/tao/Bounded_Value_Sequence_T.h
@@ -60,7 +60,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 value_type const & operator[](CORBA::ULong i) const {