diff options
Diffstat (limited to 'libgo/go/path/match.go')
-rw-r--r-- | libgo/go/path/match.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/path/match.go b/libgo/go/path/match.go index efb8c5c..e9d0327 100644 --- a/libgo/go/path/match.go +++ b/libgo/go/path/match.go @@ -136,7 +136,7 @@ func matchChunk(chunk, s string) (rest string, ok bool, err os.Error) { chunk = chunk[1:] break } - var lo, hi int + var lo, hi rune if lo, chunk, err = getEsc(chunk); err != nil { return } @@ -183,7 +183,7 @@ func matchChunk(chunk, s string) (rest string, ok bool, err os.Error) { } // getEsc gets a possibly-escaped character from chunk, for a character class. -func getEsc(chunk string) (r int, nchunk string, err os.Error) { +func getEsc(chunk string) (r rune, nchunk string, err os.Error) { if len(chunk) == 0 || chunk[0] == '-' || chunk[0] == ']' { err = ErrBadPattern return |