From d5363590597572228d4e0d0ae13f3469176ceb14 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 14 Dec 2011 15:41:54 +0000 Subject: libgo: Update to weekly.2011-12-06. From-SVN: r182338 --- libgo/go/regexp/syntax/regexp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libgo/go/regexp/syntax/regexp.go') diff --git a/libgo/go/regexp/syntax/regexp.go b/libgo/go/regexp/syntax/regexp.go index b5ddab1..adcfe29 100644 --- a/libgo/go/regexp/syntax/regexp.go +++ b/libgo/go/regexp/syntax/regexp.go @@ -277,7 +277,7 @@ func escape(b *bytes.Buffer, r rune, force bool) { default: if r < 0x100 { b.WriteString(`\x`) - s := strconv.Itob(int(r), 16) + s := strconv.FormatInt(int64(r), 16) if len(s) == 1 { b.WriteRune('0') } @@ -285,7 +285,7 @@ func escape(b *bytes.Buffer, r rune, force bool) { break } b.WriteString(`\x{`) - b.WriteString(strconv.Itob(int(r), 16)) + b.WriteString(strconv.FormatInt(int64(r), 16)) b.WriteString(`}`) } } -- cgit v1.1