Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix warning on pointer/integer/address conversion
authorGabriel Corona <gabriel.corona@loria.fr>
Tue, 25 Mar 2014 12:57:42 +0000 (13:57 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Tue, 25 Mar 2014 12:57:42 +0000 (13:57 +0100)
src/mc/mc_dwarf.c

index 45e2d5e..2533500 100644 (file)
@@ -827,7 +827,7 @@ static void MC_dwarf_handle_scope_die(mc_object_info_t info, Dwarf_Die* die, Dwa
       int form = dwarf_whatform(&attr);
       int klass = MC_dwarf_form_get_class(form);
       if (klass == MC_DW_CLASS_CONSTANT)
-        frame->high_pc = frame->low_pc + high_pc;
+        frame->high_pc = (void*) ((Dwarf_Off)frame->low_pc + high_pc);
       else if(klass == MC_DW_CLASS_ADDRESS)
         frame->high_pc = ((char*) base) + high_pc;
       else