]> Cypherpunks repositories - gostls13.git/commit
exp/locale/collate: avoid 16-bit math
authorRuss Cox <rsc@golang.org>
Thu, 24 May 2012 18:50:36 +0000 (14:50 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 24 May 2012 18:50:36 +0000 (14:50 -0400)
commitce69666273bab23b5b4597acb4dbd1c18aba7270
tree178ccdda75df4ab563ab2a2439c143d5bb1f9d63
parentc44768cb1c6403bb2cf90c49f4bbfcdf37f5bf2f
exp/locale/collate: avoid 16-bit math

There's no need for the 16-bit arithmetic here,
and it tickles a long-standing compiler bug.
Fix the exp code not to use 16-bit math and
create an explicit test for the compiler bug.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6256048
src/pkg/exp/locale/collate/colelem.go
test/bugs/bug440.go [new file with mode: 0644]