From 0a7ef31d7d3e372129a665043c9377dc9e3860ee Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Tue, 3 Oct 2017 13:07:07 -0700 Subject: [PATCH] runtime: give modulesSlice the correct type MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit No need to type this global as an unsafe.Pointer, we know what type the referent is. Change-Id: I7b1374065b53ccf1373754a21d54adbedf1fd587 Reviewed-on: https://go-review.googlesource.com/67990 Reviewed-by: Daniel Martí Reviewed-by: David Crawshaw Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- src/runtime/symtab.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 0324fb7a1c..542c29ecd6 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -413,7 +413,7 @@ var pinnedTypemaps []map[typeOff]*_type var firstmoduledata moduledata // linker symbol var lastmoduledatap *moduledata // linker symbol -var modulesSlice unsafe.Pointer // see activeModules +var modulesSlice *[]*moduledata // see activeModules // activeModules returns a slice of active modules. // -- 2.48.1