forked from mirrors/gecko-dev
Bug 1570543 - Fix incorrect batch index after merging batches. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D41166 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
d7dc23922f
commit
01481c8d58
1 changed files with 3 additions and 2 deletions
|
|
@ -429,8 +429,9 @@ impl AlphaBatchContainer {
|
||||||
|
|
||||||
match batch_index {
|
match batch_index {
|
||||||
Some(batch_index) => {
|
Some(batch_index) => {
|
||||||
self.alpha_batches[batch_index + min_batch_index].merge(other_batch);
|
let index = batch_index + min_batch_index;
|
||||||
min_batch_index = batch_index;
|
self.alpha_batches[index].merge(other_batch);
|
||||||
|
min_batch_index = index;
|
||||||
}
|
}
|
||||||
None => {
|
None => {
|
||||||
self.alpha_batches.push(other_batch);
|
self.alpha_batches.push(other_batch);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue