From 51b1f7ef98cdcea9cdb9d4cd613fbfae57828d32 Mon Sep 17 00:00:00 2001 From: Scott Graham Date: Wed, 9 May 2012 20:48:16 -0700 Subject: [PATCH] fix a couple warnings when building on win32 --- modules/arch/x86/x86id.c | 2 +- modules/objfmts/elf/elf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/arch/x86/x86id.c b/modules/arch/x86/x86id.c index b07c9fc0..6207c206 100644 --- a/modules/arch/x86/x86id.c +++ b/modules/arch/x86/x86id.c @@ -643,7 +643,7 @@ x86_find_match(x86_id_insn *id_insn, yasm_insn_operand **ops, unsigned int misc_flags = info->misc_flags; unsigned int size; int mismatch = 0; - int i; + unsigned int i; /* Match CPU */ if (mode_bits != 64 && (misc_flags & ONLY_64)) diff --git a/modules/objfmts/elf/elf.c b/modules/objfmts/elf/elf.c index b9157812..7adf7ea9 100644 --- a/modules/objfmts/elf/elf.c +++ b/modules/objfmts/elf/elf.c @@ -98,7 +98,7 @@ elf_set_arch(yasm_arch *arch, yasm_symtab *symtab, int bits_pref) elf_march->ssyms[i].name, NULL, 0, 0); yasm_symrec_add_data(elf_ssyms[i], &elf_ssym_symrec_data, - &elf_march->ssyms[i]); + (void*)&elf_march->ssyms[i]); } } -- 2.40.0