QString::toLongLong() Bug?
Verfasst: 29. August 2012 11:07
Hallo,
wenn ich z.B. folgendes mache:
ist ok false und i 0. Das Problem tritt immer dann auf, wenn das oberste Bit gesetzt ist, also die Zahl negativ ist.
Ist das ein Bug oder steh ich total auf dem Schlauch?
Gruß
Philip
wenn ich z.B. folgendes mache:
Code: Alles auswählen
bool ok;
QString binStr = "1000000000000000000000000000000000000000000000000000000000000000"; // 64 Zeichen
qlonglong i = binStr.toLongLong(&ok, 2);
Ist das ein Bug oder steh ich total auf dem Schlauch?
Gruß
Philip