1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Update genflist tool

This commit is contained in:
tux3 2015-12-10 00:54:59 +01:00
parent ef019a9ae3
commit 7f4f0bbb82
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 5 additions and 6 deletions

View File

@ -81,7 +81,6 @@ int main(int argc, char* argv[])
return 1;
}
QByteArray skeyData = skeyFile.readAll();
skeyData = QByteArray::fromHex(skeyData);
skeyFile.close();
QString target(argv[1]);

View File

@ -157,18 +157,18 @@ QByteArray rangedSingleToData(float value, float min, float max, int numberOfBit
numberOfBits -= 8;
if (numberOfBits <= 8)
{
data += (unsigned char)source>>8;
data += (unsigned char)(source>>8);
return data;
}
data += (unsigned char)source>>8;
data += (unsigned char)(source>>8);
numberOfBits -= 8;
if (numberOfBits <= 8)
{
data += (unsigned char)source>>16;
data += (unsigned char)(source>>16);
return data;
}
data += (unsigned char)source>>16;
data += (unsigned char)source>>24;
data += (unsigned char)(source>>16);
data += (unsigned char)(source>>24);
return data;
}