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:
parent
ef019a9ae3
commit
7f4f0bbb82
|
@ -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]);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user