M4: fix warnings

svn-id: r52148
This commit is contained in:
Eugene Sandulenko 2010-08-17 11:01:20 +00:00
parent 4d64004aa7
commit ee23fe34b0
2 changed files with 3 additions and 3 deletions

View File

@ -157,12 +157,12 @@ int32 Machine::execInstruction() {
_code->loadInstruction(instruction);
if (instruction.instr >= 64) {
if (machineConditionalsTable[instruction.instr - 64] != NULL)
if (machineConditionalsTable[instruction.instr - 64] != 0)
(this->*machineConditionalsTable[instruction.instr - 64])(instruction);
/* The next line is to yield on unimplemented opcodes */
else { fflush(stdout); g_system->delayMillis(5000); }
} else if (instruction.instr > 0) {
if (machineCommandsTable[instruction.instr] != NULL)
if (machineCommandsTable[instruction.instr] != 0)
done = !(this->*machineCommandsTable[instruction.instr])(instruction);
/* The next line is to yield on unimplemented opcodes */
else { fflush(stdout); g_system->delayMillis(5000); }

View File

@ -226,7 +226,7 @@ bool Sequence::runProgram() {
while (!done) {
Instruction instruction;
_code->loadInstruction(instruction);
if (sequenceCommandsTable[instruction.instr] != NULL)
if (sequenceCommandsTable[instruction.instr] != 0)
done = !(this->*sequenceCommandsTable[instruction.instr])(instruction);
else { fflush(stdout); /*g_system->delayMillis(1000);*/ }
}