realistschuckle / gohaml

An implementation of the popular XHTML Abstraction Markup Language using the Go language.
MIT License
95 stars 13 forks source link

make compile with current go releases #1

Closed dersebi closed 13 years ago

dersebi commented 13 years ago

This patch makes gohaml compile on a current go release:

diff --git a/lib/parser.go b/lib/parser.go
index dd59dd7..af6f7eb 100644
--- a/lib/parser.go
+++ b/lib/parser.go
@@ -336,7 +336,7 @@ func scan(v *yystype) (output int) {
                v.i, _ = strconv.Atoi(s.TokenText())
        case scanner.Float:
                output = atom
-               v.i, _ = strconv.Atof(s.TokenText())
+               v.i, _ = strconv.Atof64(s.TokenText())
        case scanner.EOF:
                output = eof
        default:
realistschuckle commented 13 years ago

Fixed with commit 90da4279c50ba76614fc