summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/ast/ast_structure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/ast/ast_structure.cpp')
-rw-r--r--TAO/TAO_IDL/ast/ast_structure.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/TAO_IDL/ast/ast_structure.cpp b/TAO/TAO_IDL/ast/ast_structure.cpp
index 3659ee654f0..3e7fc1f83a5 100644
--- a/TAO/TAO_IDL/ast/ast_structure.cpp
+++ b/TAO/TAO_IDL/ast/ast_structure.cpp
@@ -78,6 +78,8 @@ trademarks or registered trademarks of Sun Microsystems, Inc.
#include "utl_err.h"
#include "utl_indenter.h"
+#include "ace/Truncate.h"
+
AST_Structure::AST_Structure (UTL_ScopedName *n,
bool local,
bool abstract)
@@ -211,7 +213,7 @@ AST_Structure::member_count (void)
ACE_CDR::ULong
AST_Structure::nfields (void) const
{
- return this->fields_.size ();
+ return ACE_Utils::truncate_cast<ACE_CDR::ULong> (this->fields_.size ());
}
int