Commit 9150dd55 authored by Geoff Simmons's avatar Geoff Simmons

Query evaluation uses the new float parser for byte slices.

parent d17a0cd9
......@@ -30,7 +30,6 @@ package log
import (
"bytes"
"strconv"
)
func bitTest(bits [32]byte, tag uint8) bool {
......@@ -111,8 +110,8 @@ func (expr qExpr) testRecord(rec Record) bool {
return val >= n
}
case float:
val, err := strconv.ParseFloat(string(payload), 64)
if err != nil {
val, ok := parseFloat64(payload)
if !ok {
return false
}
n := expr.rhs.floatVal
......
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