fixed compilation warnings in bxdisasm.cc
This commit is contained in:
parent
62511c3101
commit
5755328ff1
@ -2,7 +2,7 @@
|
||||
// $Id$
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (c) 2014-2017 Stanislav Shwartsman
|
||||
// Copyright (c) 2014-2020 Stanislav Shwartsman
|
||||
// Written by Stanislav Shwartsman [sshwarts at sourceforge net]
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
@ -21,7 +21,7 @@
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// Compile using:
|
||||
// g++ -I. -I./instrument/stubs -DBX_STANDALONE_DECODER bxdisasm_new.cc cpu/decoder/*.cc -o bxdisasm
|
||||
// g++ -I. -I./instrument/stubs -DBX_STANDALONE_DECODER bxdisasm.cc cpu/decoder/*.cc -o bxdisasm
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@ -60,7 +60,6 @@ int main(int argn, const char **argv)
|
||||
char disbuf[256];
|
||||
Bit8u ibuf[16] = {0};
|
||||
bx_bool is_32 = 1, is_64 = 0;
|
||||
unsigned len;
|
||||
|
||||
if (argn < 2)
|
||||
{
|
||||
@ -68,7 +67,7 @@ int main(int argn, const char **argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
for (unsigned i=1;i<argn;i++) {
|
||||
for (int i=1;i<argn;i++) {
|
||||
if (!strcmp(argv[i], "/16")) {
|
||||
is_32 = 0;
|
||||
is_64 = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user