mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-12 04:14:21 +00:00
According to IEEE-754, equality on floats reports true for both +0 and -0. However, this definition causes us to lose information. Instead, we want a definition that checks for exact equality with +0. Otherwise, we would lose the ability to serialize -0. Change-Id: I36450c24258fc4f856bfd4bc4c53a90199b216b9 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/172970 Reviewed-by: Herbie Ong <herbie@google.com>