diff --git a/src/pkg/exp/locale/collate/build/colelem.go b/src/pkg/exp/locale/collate/build/colelem.go index 343aa740a7..ff63eb594c 100644 --- a/src/pkg/exp/locale/collate/build/colelem.go +++ b/src/pkg/exp/locale/collate/build/colelem.go @@ -70,7 +70,7 @@ func makeCE(weights []int) (uint32, error) { ce = uint32(weights[0]<= 1< %x", d, d, 1<>= 5 - w.secondary = defaultSecondary + uint16(ce&0xF) + w.secondary = defaultSecondary + uint16(ce&0xF) - 4 ce >>= 4 w.primary = uint32(ce) } else { diff --git a/src/pkg/exp/locale/collate/colelem_test.go b/src/pkg/exp/locale/collate/colelem_test.go index bcb4ddb68c..b8701f66b5 100644 --- a/src/pkg/exp/locale/collate/colelem_test.go +++ b/src/pkg/exp/locale/collate/colelem_test.go @@ -32,7 +32,7 @@ func makeCE(weights []int) colElem { ce = colElem(weights[0]<