We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bcf638 commit 08e3a18Copy full SHA for 08e3a18
src/mfast/xml_parser/templates_builder.cpp
@@ -143,7 +143,7 @@ bool templates_builder::VisitExit(const XMLElement &element) {
143
typedef const template_instruction *const_template_instruction_ptr_t;
144
145
definition_->instructions_ = new (alloc())
146
- const_template_instruction_ptr_t[this->num_instructions()];
+ const_template_instruction_ptr_t[templates_.size()];
147
std::copy(templates_.begin(), templates_.end(), definition_->instructions_);
148
definition_->instructions_count_ = static_cast<uint32_t>(templates_.size());
149
}
0 commit comments