summaryrefslogtreecommitdiff
path: root/test/gc2.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/gc2.go')
-rw-r--r--test/gc2.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gc2.go b/test/gc2.go
index de52a4fbf..561516b8b 100644
--- a/test/gc2.go
+++ b/test/gc2.go
@@ -1,5 +1,7 @@
// run
+// +build !nacl
+
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -36,7 +38,7 @@ func main() {
}
runtime.ReadMemStats(memstats)
- obj := memstats.HeapObjects - st.HeapObjects
+ obj := int64(memstats.HeapObjects - st.HeapObjects)
if obj > N/5 {
fmt.Println("too many objects left:", obj)
os.Exit(1)