1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-29 04:31:45 +02:00

(intern_regions): Change type of "i" to be unsigned, to avoid compiler-warning.

(intern_array): Ditto.

(Logical change 1.43)
This commit is contained in:
hp.com!davidm 2003-01-28 03:40:06 +00:00
parent 6da7fc2511
commit ef0b937c87

View file

@ -55,10 +55,10 @@ static int
intern_regions (unw_addr_space_t as, unw_accessors_t *a, intern_regions (unw_addr_space_t as, unw_accessors_t *a,
unw_word_t *addr, unw_dyn_region_info_t **regionp, void *arg) unw_word_t *addr, unw_dyn_region_info_t **regionp, void *arg)
{ {
uint32_t insn_count, op_count; uint32_t insn_count, op_count, i;
unw_dyn_region_info_t *region; unw_dyn_region_info_t *region;
unw_word_t next_addr; unw_word_t next_addr;
int i, ret; int ret;
*regionp = NULL; *regionp = NULL;
@ -98,8 +98,8 @@ intern_array (unw_addr_space_t as, unw_accessors_t *a,
unw_word_t *addr, unw_word_t table_len, unw_word_t **table_data, unw_word_t *addr, unw_word_t table_len, unw_word_t **table_data,
void *arg) void *arg)
{ {
unw_word_t *data = calloc (table_len, WSIZE); unw_word_t i, *data = calloc (table_len, WSIZE);
int ret = 0, i; int ret = 0;
if (!data) if (!data)
{ {