diff --git a/java/idl2jni/codegen/idl2jni_visitor.cpp b/java/idl2jni/codegen/idl2jni_visitor.cpp index 2df2caab90..c7d00809da 100644 --- a/java/idl2jni/codegen/idl2jni_visitor.cpp +++ b/java/idl2jni/codegen/idl2jni_visitor.cpp @@ -178,7 +178,7 @@ idl2jni_visitor::visit_interface(AST_Interface *node) //vector inherits(node->inherits(), // node->inherits() + node->n_inherits()); const size_t n_inherits = static_cast(node->n_inherits()); - vector inherits(n_inherits)); + vector inherits(n_inherits); for (size_t i = 0; i < n_inherits; i++) { inherits[i] = dynamic_cast(*(node->inherits()+i)); }