From: Dan Dennedy Date: Sun, 12 May 2013 17:12:01 +0000 (-0700) Subject: Cleanup 64 bit int property tests. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d3ffd0f0e8c181c4a6c25d2ccc3463a5ac514350;p=mlt Cleanup 64 bit int property tests. --- diff --git a/src/tests/test_properties/test_properties.cpp b/src/tests/test_properties/test_properties.cpp index 34aa0808..9264b488 100644 --- a/src/tests/test_properties/test_properties.cpp +++ b/src/tests/test_properties/test_properties.cpp @@ -80,9 +80,9 @@ private Q_SLOTS: void SetAndGetInt64() { Properties p; - qint64 i = 1LL << 32; - p.set("key", (int64_t)i); - QCOMPARE((qint64)p.get_int64("key"), i); + int64_t i = 1LL << 32; + p.set("key", i); + QCOMPARE(p.get_int64("key"), i); } void SetAndGetData() @@ -111,11 +111,11 @@ private Q_SLOTS: { Properties p; const char *s = "-1"; - qint64 i = -1; - p.set("key", (int64_t)i); + int64_t i = -1; + p.set("key", i); QCOMPARE(p.get("key"), s); p.set("key", s); - QCOMPARE((qint64)p.get_int64("key"), i); + QCOMPARE(p.get_int64("key"), i); } void DoubleFromString()