summaryrefslogtreecommitdiffstats
path: root/libgo/go/old/template/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/old/template/parse.go')
-rw-r--r--libgo/go/old/template/parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/old/template/parse.go b/libgo/go/old/template/parse.go
index b8c806472ee..e1bfa472499 100644
--- a/libgo/go/old/template/parse.go
+++ b/libgo/go/old/template/parse.go
@@ -424,11 +424,11 @@ func (t *Template) newVariable(words []string) *variableElement {
}
case '.', '+', '-', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9':
- v, err := strconv.Btoi64(word, 0)
+ v, err := strconv.ParseInt(word, 0, 64)
if err == nil {
args[i] = v
} else {
- v, err := strconv.Atof64(word)
+ v, err := strconv.ParseFloat(word, 64)
args[i], lerr = v, err
}
OpenPOWER on IntegriCloud