Patch for bfd/cache.c - explicit cast to void*

Jerker Bäck jerker.back@telia.com
Sun Mar 1 09:15:00 GMT 2009


The actual patch file didn't make it in my post - it seems.
Here it is.



> I suggest the attached patch to bfd/cache.c.
> 
> 
> This patch gives explicit cast from integer value to void*.
> 
> -chunk_nread = cache_bread_1(abfd, (char*)buf + nread, chunk_size);
> +chunk_nread = cache_bread_1(abfd, (void*)((file_ptr)buf + nread),
> chunk_size);
> 
> My compiler refuse to compile the current source - just to make it work.
> 
> thanks
> Jerker Bäck

-------------- next part --------------
A non-text attachment was scrubbed...
Name: bfd_cache.patch
Type: application/octet-stream
Size: 793 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090301/f5e638c2/attachment.obj>


More information about the Binutils mailing list