Fix compilation on Ubuntu 12.10 64bit.
{
Properties p;
qint64 i = 1LL << 32;
{
Properties p;
qint64 i = 1LL << 32;
- p.set("key", i);
- QCOMPARE(p.get_int64("key"), i);
+ p.set("key", (int64_t)i);
+ QCOMPARE((qint64)p.get_int64("key"), i);
Properties p;
const char *s = "-1";
qint64 i = -1;
Properties p;
const char *s = "-1";
qint64 i = -1;
+ p.set("key", (int64_t)i);
QCOMPARE(p.get("key"), s);
p.set("key", s);
QCOMPARE(p.get("key"), s);
p.set("key", s);
- QCOMPARE(p.get_int64("key"), i);
+ QCOMPARE((qint64)p.get_int64("key"), i);
}
void DoubleFromString()
}
void DoubleFromString()