speculative : fix seg fault in certain cases (#12454)
This commit is contained in:
parent
99aa304fb9
commit
c6af2161b2
1 changed files with 2 additions and 2 deletions
|
@ -335,7 +335,7 @@ int main(int argc, char ** argv) {
|
||||||
if (i == s) {
|
if (i == s) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (drafts[i].tokens[i_dft] == drafts[s].tokens[i_dft]) {
|
if (drafts[i].active && drafts[i].tokens[i_dft] == drafts[s].tokens[i_dft]) {
|
||||||
// synchronize active status for sequences with the same drafted token
|
// synchronize active status for sequences with the same drafted token
|
||||||
drafts[i].active = drafts[i].active && accept;
|
drafts[i].active = drafts[i].active && accept;
|
||||||
if (!drafts[i].active) {
|
if (!drafts[i].active) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue