diff --git a/pkg/cover/report_test.go b/pkg/cover/report_test.go index 7ce519c83362..4ed39fa4ee0f 100644 --- a/pkg/cover/report_test.go +++ b/pkg/cover/report_test.go @@ -199,7 +199,7 @@ void* aslr_base() { dlinfo(handle, RTLD_DI_LINKMAP, &map); dlclose(handle); } - return map ? map->l_addr : NULL; + return map ? (void *)map->l_addr : NULL; } #else void* aslr_base() { return NULL; }