diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-21 02:21:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-21 02:21:19 +0200 |
commit | c5b69772be6c56c1317d3e5d36a9e4aac9f92d62 (patch) | |
tree | 512ea8798774e5851cff40748a2b61603189134e /csv | |
parent | 4d0bbe2df4228e767ef1402268181fd4483b792b (diff) |
csv: use unsigned char in scanf
Diffstat (limited to 'csv')
-rwxr-xr-x[-rw-r--r--] | csv/csv.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp index e55b429c..4c754542 100644..100755 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -122,14 +122,14 @@ void CSV::getGameData( const int id, unsigned char* table, QString& gamename) if (gameLine.count() > 6) { if (gameLine.at(6).compare( gameID, Qt::CaseInsensitive ) == 0) { QByteArray id = gameLine.at(7).toLatin1(); - unsigned int tmp[8]; - unsigned int fuzz[3]; + unsigned char tmp[8]; + unsigned char fuzz[3]; if (gameLine.at(3) == QString("V160")) { qDebug() << "no table"; } else if (sscanf(id.constData(), - "%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", + "%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx", fuzz + 2, fuzz + 0, tmp + 3, |