go/src
Nigel Tao a855da29db image: fix the overlap check in Rectangle.Intersect.
The doc comment for Rectangle.Intersect clearly states, "If the two
rectangles do not overlap then the zero rectangle will be returned."
Prior to this fix, calling Intersect on adjacent but non-overlapping
rectangles would return an empty but non-zero rectangle.

The fix essentially changes
if r.Min.X > r.Max.X || r.Min.Y > r.Max.Y { etc }
to
if r.Min.X >= r.Max.X || r.Min.Y >= r.Max.Y { etc }
(note that the > signs have become >= signs), but changing that line to:
if r.Empty() { etc }
seems clearer (and equivalent).

Change-Id: Ia654e4b9dc805978db3e94d7a9718b6366005360
Reviewed-on: https://go-review.googlesource.com/34853
Reviewed-by: David Crawshaw <crawshaw@golang.org>
2017-02-07 14:07:02 +00:00
..
archive time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
bufio
builtin
bytes all: fix misspellings 2017-01-07 16:53:25 +00:00
cmd cmd/compile/internal/syntax: avoid follow-up error for incorrect if statement 2017-02-07 06:59:54 +00:00
compress all: test adjustments for the iOS builder 2017-01-14 03:27:53 +00:00
container
context context: lazily initialize cancelCtx done channel 2017-02-01 20:08:41 +00:00
crypto crypto/tls: reject SNI values with a trailing dot. 2017-02-01 21:59:57 +00:00
database/sql database/sql: fix spelling mistake 2017-02-01 21:06:35 +00:00
debug cmd/objdump: copy gosym.PCValue into internal package 2016-12-01 18:20:04 +00:00
encoding time: record monotonic clock reading in time.Now, for more accurate comparisons 2017-02-03 19:04:52 +00:00
errors
expvar
flag
fmt fmt: undo clearflags in catchPanic after error message has been printed 2016-12-11 21:59:59 +00:00
go runtime/pprof: add definitions of profile label types 2017-02-06 15:43:06 +00:00
hash
html html/template: lock in application/json as valid JS test 2016-12-04 03:59:31 +00:00
image image: fix the overlap check in Rectangle.Intersect. 2017-02-07 14:07:02 +00:00
index/suffixarray
internal internal/pprof/profile: parse mutex profile including comments 2016-11-29 18:04:37 +00:00
io io: fix test when MultiReader is inlined with -l=3 2017-02-02 18:56:20 +00:00
log all: don't call t.Fatal from a goroutine 2016-11-15 15:13:48 +00:00
math crypto/*: document use or non-use of constant-time algorithms 2016-12-07 16:34:50 +00:00
mime mime/multipart: allow boundary len <= 70 2017-02-01 21:06:49 +00:00
net net/http/httputil: don't log read error when it's context.Canceled 2017-02-06 19:16:56 +00:00
os os/user: cache the result of user.Current 2017-02-06 18:49:52 +00:00
path path/filepath: ignore dot for Dir(`\\server\share`) 2017-02-04 07:24:20 +00:00
plugin cmd/go, plugin: disable plugins on darwin 2016-12-15 05:46:20 +00:00
reflect reflect: adjust documentation on Value 2017-02-01 19:11:34 +00:00
regexp
runtime runtime/pprof: symbolize proto profiles 2017-02-07 14:03:13 +00:00
sort sort: optimize average calculation in binary search 2017-02-06 17:08:13 +00:00
strconv
strings
sync runtime/internal/atomic: crash on unaligned 64-bit ops on 32-bit MIPS 2016-11-22 02:05:07 +00:00
syscall syscall: regenerate zsyscall_darwin_arm64.go with mksyscall.pl 2017-02-01 22:09:32 +00:00
testing testing: print extra labels on benchmarks 2017-02-07 00:08:39 +00:00
text text/template: handle option missingkey=error consistently 2016-11-18 15:56:02 +00:00
time time: Fix typo in Time.String() description. 2017-02-05 21:14:45 +00:00
unicode
unsafe unsafe: remove incorrect type conversion in docs 2016-11-07 18:54:14 +00:00
vendor/golang_org/x vendor/golang.org/x/crypto/curve25519: avoid loss of R15 in -dynlink mode 2017-02-06 20:14:03 +00:00
Make.dist
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash buildall.bash: clarify target selection 2017-02-04 04:34:36 +00:00
clean.bash
clean.bat
clean.rc
cmp.bash all: make copyright headers consistent with one space after period 2016-11-04 20:46:25 +00:00
iostest.bash
make.bash
make.bat
make.rc build: fix cross-compile on Plan 9 2016-11-22 01:32:28 +00:00
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc