]> Cypherpunks repositories - gostls13.git/commit
gc: fix string comparisons for new bool rules
authorAnthony Martin <ality@pbrane.org>
Wed, 29 Feb 2012 21:55:50 +0000 (13:55 -0800)
committerAnthony Martin <ality@pbrane.org>
Wed, 29 Feb 2012 21:55:50 +0000 (13:55 -0800)
commit564a1f3358c2d4f6d1f04ef5acef4057d4421360
treeaf0d8174c5366c2d5fb7bf3bf8877c7d63337831
parentfc268acf05adf5d0437ef1bf80c6e919818fe6ff
gc: fix string comparisons for new bool rules

The two string comparison optimizations were
missing the implicit cast from ideal bool.

Fixes #3119.

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