summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_csv
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_csv')
-rw-r--r--ftnoir_csv/csv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_csv/csv.cpp b/ftnoir_csv/csv.cpp
index 4e76e844..ebdf50bb 100644
--- a/ftnoir_csv/csv.cpp
+++ b/ftnoir_csv/csv.cpp
@@ -138,7 +138,7 @@ void CSV::getGameData( const int id, unsigned char* table, QString& gamename)
if (gameLine.at(6).compare( gameID, Qt::CaseInsensitive ) == 0) {
QByteArray id = gameLine.at(7).toLatin1();
unsigned int tmp[8];
- int fuzz[3];
+ unsigned int fuzz[3];
if (gameLine.at(3) == QString("V160"))
{
qDebug() << "no table";
@@ -155,7 +155,7 @@ void CSV::getGameData( const int id, unsigned char* table, QString& gamename)
tmp + 6,
tmp + 5,
tmp + 4,
- fuzz + 1) != 11 || ((fuzz[2] << 8) | fuzz[0]) != gameLine.at(0).toInt())
+ fuzz + 1) != 11 || (int) ((fuzz[2] << 8) | fuzz[0]) != gameLine.at(0).toInt())
{
qDebug() << "scanf failed" << fuzz[0] << fuzz[1] << fuzz[2];
}