diff options
Diffstat (limited to 'TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h')
-rw-r--r-- | TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h index a4656160425..539b226c511 100644 --- a/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h +++ b/TAO/tao/Valuetype/Bounded_Valuetype_Sequence_T.h @@ -61,7 +61,10 @@ public: inline void length(CORBA::ULong length) { implementation_type::range::check_length(length, MAX); - impl_.length(length); + if (MAX >= length) + { + impl_.length(length); + } } inline value_type const & operator[](CORBA::ULong i) const { return impl_[i]; |