From db69d09d2c587e9b9677f991dfcab1fc24d9086e Mon Sep 17 00:00:00 2001 From: David Hill Date: Sun, 21 Jan 2018 11:36:22 -0500 Subject: [PATCH] vet: fix vet warnings --- spew/dump_test.go | 2 +- spew/format_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spew/dump_test.go b/spew/dump_test.go index 5aad9c7..4a31a2e 100644 --- a/spew/dump_test.go +++ b/spew/dump_test.go @@ -768,7 +768,7 @@ func addUintptrDumpTests() { func addUnsafePointerDumpTests() { // Null pointer. - v := unsafe.Pointer(uintptr(0)) + v := unsafe.Pointer(nil) nv := (*unsafe.Pointer)(nil) pv := &v vAddr := fmt.Sprintf("%p", pv) diff --git a/spew/format_test.go b/spew/format_test.go index 0719eb9..87ee965 100644 --- a/spew/format_test.go +++ b/spew/format_test.go @@ -1083,7 +1083,7 @@ func addUintptrFormatterTests() { func addUnsafePointerFormatterTests() { // Null pointer. - v := unsafe.Pointer(uintptr(0)) + v := unsafe.Pointer(nil) nv := (*unsafe.Pointer)(nil) pv := &v vAddr := fmt.Sprintf("%p", pv)