]> git.proxmox.com Git - qemu.git/blobdiff - check-qint.c
vnc: rename vnc-encoding-* vnc-enc-*
[qemu.git] / check-qint.c
index ae5d22f7e7e9fcc373e5caa94762a3dd3a669440..f3b031698c4021612ba051ed1a61a501d7ed3683 100644 (file)
@@ -5,6 +5,9 @@
  *
  * Authors:
  *  Luiz Capitulino <lcapitulino@redhat.com>
+ *
+ * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
+ * See the COPYING.LIB file in the top-level directory.
  */
 #include <check.h>
 
@@ -43,10 +46,10 @@ END_TEST
 START_TEST(qint_from_int64_test)
 {
     QInt *qi;
-    const int64_t value = 0xffffffffffffffff;
+    const int64_t value = 0x1234567890abcdefLL;
 
     qi = qint_from_int(value);
-    fail_unless(qi->value == value);
+    fail_unless((int64_t) qi->value == value);
 
     QDECREF(qi);
 }