This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]