From d3ffd0f0e8c181c4a6c25d2ccc3463a5ac514350 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 12 May 2013 10:12:01 -0700 Subject: [PATCH] Cleanup 64 bit int property tests. --- src/tests/test_properties/test_properties.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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() -- 2.39.5