go/container
Alan Donovan ee1ca4ffc4 container/intsets: fix bug in UnionWith 'changed' result
This change corrects the computation of the 'changed' result
of the x.UnionWith(y) method in the case where a block of y is
a subset of the corresponding block of x. It also adds a test.

I audited for similar problems and found none.

Fixes golang/go#50352

Change-Id: I5224211a3cab06ce8986cdaa7b75c3b0531b3a9e
Reviewed-on: https://go-review.googlesource.com/c/tools/+/374455
Trust: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
gopls-CI: kokoro <noreply+kokoro@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2021-12-28 19:29:29 +00:00
..
intsets container/intsets: fix bug in UnionWith 'changed' result 2021-12-28 19:29:29 +00:00