summaryrefslogtreecommitdiff
path: root/TAO/tao/Bounded_Array_Sequence_T.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Bounded_Array_Sequence_T.h')
-rw-r--r--TAO/tao/Bounded_Array_Sequence_T.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/TAO/tao/Bounded_Array_Sequence_T.h b/TAO/tao/Bounded_Array_Sequence_T.h
index 1702cd41dfe..f5e22bbf93d 100644
--- a/TAO/tao/Bounded_Array_Sequence_T.h
+++ b/TAO/tao/Bounded_Array_Sequence_T.h
@@ -53,7 +53,10 @@ public:
return impl_.length();
}
inline void length(CORBA::ULong length) {
- impl_.length(length);
+ if (MAX >= length)
+ {
+ impl_.length(length);
+ }
}
inline value_type const & operator[](CORBA::ULong i) const {
return impl_[i];