We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae2f54a commit 79a3b56Copy full SHA for 79a3b56
src/cmd/compile/internal/gc/bexport.go
@@ -713,20 +713,11 @@ func (p *exporter) value(x Val) {
713
}
714
715
func (p *exporter) float(x *Mpflt) {
716
- // extract sign, treat -0 as < 0
+ // extract sign (there is no -0)
717
f := &x.Val
718
sign := f.Sign()
719
if sign == 0 {
720
- // ±0
721
- // TODO(gri) remove 'if' below if #12577 gets accepted
722
- if f.Signbit() {
723
- // -0 (uncommon)
724
- p.int(-1)
725
- p.int(0)
726
- p.string("")
727
- return
728
- }
729
- // +0
+ // x == 0
730
p.int(0)
731
return
732
0 commit comments