Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix type conversion (once again)
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 28 Mar 2014 14:28:25 +0000 (15:28 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 28 Mar 2014 14:28:25 +0000 (15:28 +0100)
src/mc/mc_dwarf_expression.c

index ec9d978..c349091 100644 (file)
@@ -92,7 +92,8 @@ int mc_dwarf_execute_expression(
         return MC_EXPRESSION_E_NO_BASE_ADDRESS;
       if(state->stack_size==MC_EXPRESSION_STACK_SIZE)
         return MC_EXPRESSION_E_STACK_OVERFLOW;
-      error = mc_dwarf_push_value(state,  (Dwarf_Off)MC_object_base_address(state->object_info) + op->number);
+      error = mc_dwarf_push_value(state,
+        (Dwarf_Off)(uintptr_t)MC_object_base_address(state->object_info) + op->number);
       break;
 
     case DW_OP_const1u: