diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-16 23:44:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-17 03:16:11 +0200 |
commit | a8a8cfac5f1be7e0cbfadcc2def8aaa0e8d9d9a0 (patch) | |
tree | bdbd4ca204fec2009a003d7f9e140706afe38446 /ftnoir_csv | |
parent | 3e71e6218557bf14220a23d5afb772c170545cb4 (diff) |
all except 3rdparty-maintained stuff pass -Wall -Wextra -pedantic
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'ftnoir_csv')
-rw-r--r-- | ftnoir_csv/csv.cpp | 4 |
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]; } |