summaryrefslogtreecommitdiff
path: root/libgo/go/strconv/internal_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/strconv/internal_test.go')
-rw-r--r--libgo/go/strconv/internal_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/libgo/go/strconv/internal_test.go b/libgo/go/strconv/internal_test.go
index 9a7f4f0867c..d0fa80edfb6 100644
--- a/libgo/go/strconv/internal_test.go
+++ b/libgo/go/strconv/internal_test.go
@@ -6,7 +6,11 @@
package strconv
-func NewDecimal(i uint64) *decimal { return newDecimal(i) }
+func NewDecimal(i uint64) *decimal {
+ d := new(decimal)
+ d.Assign(i)
+ return d
+}
func SetOptimize(b bool) bool {
old := optimize