Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
myst6re committed Feb 26, 2024
1 parent 5061aac commit 7ed1a54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/JsmScripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ JsmProgram JsmScripts::program(const QList<JsmOpcode *>::const_iterator &constBe
int lbl = labels.indexOf(pos + op->param());
if (lbl == -1) {
qDebug() << labels << op->toString();
qFatal(qPrintable(QString("JsmScripts::program 1 label for pos %1 + %2 not found")
.arg(pos).arg(op->param())));
qFatal() << QString("JsmScripts::program 1 label for pos %1 + %2 not found")
.arg(pos).arg(op->param()).toLocal8Bit().constData();
}
JsmOpcodeGoto *jmp = new JsmOpcodeGoto(*op, lbl);
jmp->setKey(JsmOpcode::JMP);
Expand All @@ -542,8 +542,8 @@ JsmProgram JsmScripts::program(const QList<JsmOpcode *>::const_iterator &constBe
int lbl = labels.indexOf(pos + op->param());
if (lbl == -1) {
qDebug() << labels << op->toString();
qFatal(qPrintable(QString("JsmScripts::program 3 label for pos %1 + %2 not found")
.arg(pos).arg(op->param())));
qFatal() << QString("JsmScripts::program 3 label for pos %1 + %2 not found")
.arg(pos).arg(op->param()).toLocal8Bit().constData();
}
JsmOpcode *toAppendOp = new JsmOpcodeGoto(*op, lbl);
ret.append(JsmInstruction(toAppendOp));
Expand Down
6 changes: 3 additions & 3 deletions src/files/MchFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ bool MchFile::open(const QByteArray &mch, const QString &name)
toc.append(timOffset);
}

qDebug() << "tim offset" << QString::number(timOffset & 0xFFFFFF, 16) << QString::number((timOffset >> 24) & 0xFF, 16);
//qDebug() << "tim offset" << QString::number(timOffset & 0xFFFFFF, 16) << QString::number((timOffset >> 24) & 0xFF, 16);
} while (timOffset != 0xFFFFFFFF && constData - startData < 0x100);

if (timOffset == 0xFFFFFFFF) {
memcpy(&modelOffset, constData, 4);

qDebug() << "model data offset" << QString::number(modelOffset, 16);
//qDebug() << "model data offset" << QString::number(modelOffset, 16);

if (!toc.isEmpty()) {
toc.append(modelOffset);
Expand Down Expand Up @@ -83,7 +83,7 @@ bool MchFile::open(const QByteArray &mch, const QString &name)
return false;
}

qDebug() << "MchFile ouvert" << name;
//qDebug() << "MchFile ouvert" << name;

return true;
}
Expand Down

0 comments on commit 7ed1a54

Please sign in to comment.