]> Cypherpunks repositories - gostls13.git/commit
gc: fix struct and array comparisons for new bool rules
authorAnthony Martin <ality@pbrane.org>
Mon, 19 Mar 2012 22:57:28 +0000 (15:57 -0700)
committerAnthony Martin <ality@pbrane.org>
Mon, 19 Mar 2012 22:57:28 +0000 (15:57 -0700)
commite1f22bdcc56b52a163ecccfe6e95aaf75addcdce
tree60080229279c51a1381c6353e4eaeba72136cf70
parentaa1d4170a4f586bf2d9c68097f049977146bd31c
gc: fix struct and array comparisons for new bool rules

The two optimizations for small structs and arrays
were missing the implicit cast from ideal bool.

Fixes #3351.

R=rsc, lvd
CC=golang-dev
https://golang.org/cl/5848062
src/cmd/gc/walk.c
test/fixedbugs/bug427.go [new file with mode: 0644]