未验证 提交 2d98a418 编写于 作者: Y Yancey 提交者: GitHub

fix remove op (#10410)

* fix remove op

* update
上级 0285a2b9
......@@ -143,7 +143,7 @@ OpDesc *BlockDesc::InsertOp(size_t index) {
}
void BlockDesc::RemoveOp(size_t s, size_t e) {
if (ops_.begin() + s == ops_.end() || ops_.begin() + e == ops_.end()) {
if (ops_.begin() + s >= ops_.end() || ops_.begin() + e > ops_.end()) {
return;
}
need_update_ = true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册