Constrain minimum n_draft to 2
This commit is contained in:
parent
98230ef656
commit
9248528d6e
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ int main(int argc, char ** argv) {
|
|||
n_draft += 2;
|
||||
LOG("all drafted tokens accepted, n_draft = %d\n", n_draft);
|
||||
} else {
|
||||
n_draft -= 1;
|
||||
n_draft = std::max(2, n_draft - 1);
|
||||
LOG("drafted token rejected, n_draft = %d\n", n_draft);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue