This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Patch for bfd/cache.c - explicit cast to void*
- From: Jerker Bäck <jerker dot back at gmail dot com>
- To: <binutils at sourceware dot org>
- Date: Sat, 28 Feb 2009 19:46:53 +0100
- Subject: Patch for bfd/cache.c - explicit cast to void*
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