Commit 43d2456a authored by Geoff Simmons's avatar Geoff Simmons

The int val for query evaluation is int64 (VCL INTs also 64 bit).

parent f4f69737
...@@ -79,7 +79,7 @@ const ( ...@@ -79,7 +79,7 @@ const (
type qRHS struct { type qRHS struct {
strVal []byte strVal []byte
intVal int intVal int64
floatVal float64 floatVal float64
regex *regexp.Regexp regex *regexp.Regexp
rhsType rhsType rhsType rhsType
...@@ -256,7 +256,7 @@ func (parser *qParser) parseNum(intOnly bool) (qRHS, error) { ...@@ -256,7 +256,7 @@ func (parser *qParser) parseNum(intOnly bool) (qRHS, error) {
return rhs, parser.err("Integer parse error") return rhs, parser.err("Integer parse error")
} }
rhs.rhsType = integer rhs.rhsType = integer
rhs.intVal = n rhs.intVal = int64(n)
if err := parser.advToken(); err != nil { if err := parser.advToken(); err != nil {
return rhs, err return rhs, err
} }
......
...@@ -44,7 +44,7 @@ type expLHS struct { ...@@ -44,7 +44,7 @@ type expLHS struct {
type expRHS struct { type expRHS struct {
str string str string
intVal int intVal int64
floatVal float64 floatVal float64
rhsType rhsType rhsType rhsType
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment