From 5a95ef633592ac6d9d213d7436bbc46842163904 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sun, 5 May 2013 22:28:15 -0500 Subject: [PATCH] Cast to correct int types. Fix compilation on Ubuntu 12.10 64bit. --- src/tests/test_properties/test_properties.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/test_properties/test_properties.cpp b/src/tests/test_properties/test_properties.cpp index 2c619fb3..34aa0808 100644 --- a/src/tests/test_properties/test_properties.cpp +++ b/src/tests/test_properties/test_properties.cpp @@ -81,8 +81,8 @@ private Q_SLOTS: { 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); } void SetAndGetData() @@ -112,10 +112,10 @@ private Q_SLOTS: Properties p; const char *s = "-1"; qint64 i = -1; - p.set("key", i); + p.set("key", (int64_t)i); QCOMPARE(p.get("key"), s); p.set("key", s); - QCOMPARE(p.get_int64("key"), i); + QCOMPARE((qint64)p.get_int64("key"), i); } void DoubleFromString() -- 2.39.2