addr2line.c: clarify the type of integer expression
to suppress Coverity Scan warning. This expression converted uint8_t to int, and then int to unsigned long. Now it directly converts uint8_t to unsigned long.
This commit is contained in:
parent
0a417248a0
commit
a197579073
@ -432,7 +432,7 @@ parse_debug_line_cu(int num_traces, void **traces, char **debug_line,
|
|||||||
/*basic_block = 1; */
|
/*basic_block = 1; */
|
||||||
break;
|
break;
|
||||||
case DW_LNS_const_add_pc:
|
case DW_LNS_const_add_pc:
|
||||||
a = ((255 - header.opcode_base) / header.line_range) *
|
a = ((255UL - header.opcode_base) / header.line_range) *
|
||||||
header.minimum_instruction_length;
|
header.minimum_instruction_length;
|
||||||
addr += a;
|
addr += a;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user