dbghelp: Cast-qual warnings fix

Andrew Talbot Andrew.Talbot at talbotville.com
Thu Jul 19 16:04:50 CDT 2007


Changelog:
    dbghelp: Cast-qual warnings fix.

diff -urN a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
--- a/dlls/dbghelp/dwarf.c	2007-05-15 20:03:43.000000000 +0100
+++ b/dlls/dbghelp/dwarf.c	2007-07-19 21:38:00.000000000 +0100
@@ -2207,10 +2207,10 @@
         dwarf2_comp_unit_t comp_unit;
     
         comp_unit_stream = (const dwarf2_comp_unit_stream_t*) comp_unit_cursor;
-        comp_unit.length = *(unsigned long*)  comp_unit_stream->length;
-        comp_unit.version = *(unsigned short*) comp_unit_stream->version;
-        comp_unit.abbrev_offset = *(unsigned long*) comp_unit_stream->abbrev_offset;
-        comp_unit.word_size = *(unsigned char*) comp_unit_stream->word_size;
+        comp_unit.length = *(const unsigned long*)  comp_unit_stream->length;
+        comp_unit.version = *(const unsigned short*) comp_unit_stream->version;
+        comp_unit.abbrev_offset = *(const unsigned long*) comp_unit_stream->abbrev_offset;
+        comp_unit.word_size = *(const unsigned char*) comp_unit_stream->word_size;
 
         dwarf2_parse_compilation_unit(section, &comp_unit, module,
                                       thunks, comp_unit_cursor, load_offset);



More information about the wine-patches mailing list