diff options
author | Scott Graham <scottmg@chromium.org> | 2012-05-09 20:48:16 -0700 |
---|---|---|
committer | Scott Graham <scottmg@chromium.org> | 2012-05-09 20:48:16 -0700 |
commit | 51b1f7ef98cdcea9cdb9d4cd613fbfae57828d32 (patch) | |
tree | d2c879c2a6aeea04105258ad3b195b056f367c0f | |
parent | 82fafa7b5619e702c8681c959ade0746498e3cbc (diff) | |
download | yasm-51b1f7ef98cdcea9cdb9d4cd613fbfae57828d32.tar.gz |
fix a couple warnings when building on win32
-rw-r--r-- | modules/arch/x86/x86id.c | 2 | ||||
-rw-r--r-- | 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]); } } |