]> git.sesse.net Git - mlt/commitdiff
Cast to correct int types.
authorBrian Matherly <pez4brian@yahoo.com>
Mon, 6 May 2013 03:28:15 +0000 (22:28 -0500)
committerBrian Matherly <pez4brian@yahoo.com>
Mon, 6 May 2013 03:28:15 +0000 (22:28 -0500)
Fix compilation on Ubuntu 12.10 64bit.

src/tests/test_properties/test_properties.cpp

index 2c619fb3ae6ac4417bdd355caa98551df966faba..34aa080870a6090e6bf122a5fc49d9a58136ead3 100644 (file)
@@ -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()