]> Cypherpunks repositories - gostls13.git/commit
gc: make string const comparison unsigned
authorJeff R. Allen <jra@nella.org>
Wed, 16 Feb 2011 22:57:15 +0000 (17:57 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 16 Feb 2011 22:57:15 +0000 (17:57 -0500)
commit3a2d64789bb661bc5d2e27df30c3e3560bad6a03
tree8d73efec5f9f7cb5a72ac1db699e104a15d6b5cd
parent0856731daad6026fed5118d15efc86daba65782c
gc: make string const comparison unsigned

Make compile-time string const comparison match semantics
of runtime.cmpstring.

Fixes #1515.

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