瀏覽代碼

Add missing cast in pointer assignment

Carmelo Amoroso 17 年之前
父節點
當前提交
69fa463181
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ldso/libdl/libdl.c

+ 1 - 1
ldso/libdl/libdl.c

@@ -743,7 +743,7 @@ int dladdr(const void *__address, Dl_info * __info)
 
 		/* Set the info for the object the address lies in */
 		__info->dli_fname = pelf->libname;
-		__info->dli_fbase = pelf->mapaddr;
+		__info->dli_fbase = (void *)pelf->mapaddr;
 
 		symtab = (ElfW(Sym) *) (pelf->dynamic_info[DT_SYMTAB]);
 		strtab = (char *) (pelf->dynamic_info[DT_STRTAB]);