protobuf-go/internal/encoding
Damien Neil 3fa6d3f003 internal/encoding/pack: don't depend on exact math.NaN bits
This test examines the result of converting math.NaN() to a fixed byte
string. Change it to use a specific NaN value instead, since the value
returned by math.NaN is specified only as being a NaN, not a specific
one.

Use specific float32 and float64 NaN values, since the result of
converting a float64 NaN to a float32 can and does vary.

Fixes test failure on ARM.

Change-Id: Ia1517fdba768cdd88e5ee5f5af37f0b481e651b4
Reviewed-on: https://go-review.googlesource.com/c/162117
Reviewed-by: Herbie Ong <herbie@google.com>
2019-02-12 21:38:35 +00:00
..
defval internal/encoding/defval: unify logic for handling default values 2018-12-07 22:40:20 +00:00
json go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00
pack internal/encoding/pack: don't depend on exact math.NaN bits 2019-02-12 21:38:35 +00:00
tag internal/encoding/defval: unify logic for handling default values 2018-12-07 22:40:20 +00:00
text internal/encoding/text: format using 32 bitsize when encoding float32 2019-01-18 17:54:23 +00:00
wire go.mod: rename google.golang.org/proto as github.com/golang/protobuf/v2 2018-09-24 16:11:50 +00:00