From 9a0e3259f44ad2de9c65f14f756dab01b3598391 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 12 Jan 2012 01:31:45 +0000 Subject: libgo: Update to weekly.2011-12-14. From-SVN: r183118 --- libgo/go/strings/strings.go | 2 +- libgo/go/strings/strings_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libgo/go/strings') diff --git a/libgo/go/strings/strings.go b/libgo/go/strings/strings.go index 53fdead..b411ba5 100644 --- a/libgo/go/strings/strings.go +++ b/libgo/go/strings/strings.go @@ -434,7 +434,7 @@ func Title(s string) string { // Use a closure here to remember state. // Hackish but effective. Depends on Map scanning in order and calling // the closure once per rune. - prev := rune(' ') + prev := ' ' return Map( func(r rune) rune { if isSeparator(prev) { diff --git a/libgo/go/strings/strings_test.go b/libgo/go/strings/strings_test.go index 957af67..8866d22 100644 --- a/libgo/go/strings/strings_test.go +++ b/libgo/go/strings/strings_test.go @@ -642,7 +642,7 @@ func equal(m string, s1, s2 string, t *testing.T) bool { func TestCaseConsistency(t *testing.T) { // Make a string of all the runes. - numRunes := unicode.MaxRune + 1 + numRunes := int(unicode.MaxRune + 1) if testing.Short() { numRunes = 1000 } -- cgit v1.1