Skip to content

Commit

Permalink
maligned: use build.Default to determine type sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak authored and mdempsky committed Jul 8, 2018
1 parent 08c8e9d commit 6e39bd2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions maligned.go
Expand Up @@ -29,6 +29,7 @@ func main() {
}

var conf loader.Config
conf.TypeChecker.Sizes = types.SizesFor(build.Default.Compiler, build.Default.GOARCH)
conf.Fset = fset
for _, importPath := range importPaths {
conf.Import(importPath)
Expand Down

0 comments on commit 6e39bd2

Please sign in to comment.