diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-01-09 20:20:43 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-01-10 21:27:19 +0000 |
commit | 8b9b365493220a7bfd87fd3c27301e43baa35a0d (patch) | |
tree | 7a76d0b0a69bb0097fe37fab368773221cb22bc7 /src | |
parent | 55d10acb72c2dc5524aae69ade560f3cf308a864 (diff) | |
download | go-8b9b365493220a7bfd87fd3c27301e43baa35a0d.tar.gz go-8b9b365493220a7bfd87fd3c27301e43baa35a0d.zip |
cmd/compile: use exact constant in go_asm.h
Fixes #50523
Change-Id: Idab1b44d106250e9301d90ee6571f0ea51242dd9
Reviewed-on: https://go-review.googlesource.com/c/go/+/377074
Trust: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Liz Fong-Jones <lizf@honeycomb.io>
Reviewed-by: Emmanuel Odeke <emmanuel@orijtech.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/compile/internal/gc/export.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/export.go b/src/cmd/compile/internal/gc/export.go index eed438705a..c9acfc1710 100644 --- a/src/cmd/compile/internal/gc/export.go +++ b/src/cmd/compile/internal/gc/export.go @@ -31,7 +31,7 @@ func dumpasmhdr() { if t == constant.Float || t == constant.Complex { break } - fmt.Fprintf(b, "#define const_%s %v\n", n.Sym().Name, n.Val()) + fmt.Fprintf(b, "#define const_%s %v\n", n.Sym().Name, n.Val().ExactString()) case ir.OTYPE: t := n.Type() |