From: Brian Matherly Date: Mon, 6 May 2013 03:28:15 +0000 (-0500) Subject: Cast to correct int types. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5a95ef633592ac6d9d213d7436bbc46842163904;p=mlt Cast to correct int types. Fix compilation on Ubuntu 12.10 64bit. --- 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()