]> granicus.if.org Git - taglib/commitdiff
This value should be bool, not int
authorLukáš Lalinský <lalinsky@gmail.com>
Mon, 14 Sep 2009 10:25:34 +0000 (10:25 +0000)
committerLukáš Lalinský <lalinsky@gmail.com>
Mon, 14 Sep 2009 10:25:34 +0000 (10:25 +0000)
Since bool and int have the same size on x86 architectures, this worked for
me, but since they have a different size on ppc64, it caused the test to
fail. See http://marc.info/?l=taglib-devel&m=125291701231305&w=2 for details.

We should store the type in MP4::Item and do some type checking to avoid
mistakes like this...

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1023246 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

tests/test_mp4.cpp

index 9732a5bb716d66b78bdb8b40677cda40da7374a4..7f9c9fe7189b2c9a2112aca554175529a6853b46 100644 (file)
@@ -130,7 +130,7 @@ public:
     MP4::Atom *moov = atoms->atoms[0];
     CPPUNIT_ASSERT_EQUAL(long(77), moov->length);
 
-    f->tag()->itemListMap()["pgap"] = 1;
+    f->tag()->itemListMap()["pgap"] = true;
     f->save();
 
     f = new MP4::File(filename.c_str());