diff options
Diffstat (limited to 'libgo/go/regexp/syntax')
-rw-r--r-- | libgo/go/regexp/syntax/prog.go | 2 | ||||
-rw-r--r-- | libgo/go/regexp/syntax/regexp.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/regexp/syntax/prog.go b/libgo/go/regexp/syntax/prog.go index f5b697a..84ebb83 100644 --- a/libgo/go/regexp/syntax/prog.go +++ b/libgo/go/regexp/syntax/prog.go @@ -267,7 +267,7 @@ func dumpProg(b *bytes.Buffer, p *Prog) { } func u32(i uint32) string { - return strconv.Uitoa64(uint64(i)) + return strconv.FormatUint(uint64(i), 10) } func dumpInst(b *bytes.Buffer, i *Inst) { 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(`}`) } } |