35 lines
1.3 KiB
Diff
35 lines
1.3 KiB
Diff
From 8ad22faae56fb7df4d4f085799230f98ed441066 Mon Sep 17 00:00:00 2001
|
|
From: Martchus <martchus@gmx.net>
|
|
Date: Sun, 30 Dec 2018 22:54:06 +0100
|
|
Subject: [PATCH] Fix building tests under 32-bit Linux
|
|
|
|
---
|
|
tests/cli.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/cli.cpp b/tests/cli.cpp
|
|
index 43729c3..e1b5cb2 100644
|
|
--- a/tests/cli.cpp
|
|
+++ b/tests/cli.cpp
|
|
@@ -866,7 +866,7 @@ void CliTests::testExtraction()
|
|
MediaFileInfo extractedInfo("/tmp/extracted.jpeg");
|
|
extractedInfo.open(true);
|
|
extractedInfo.parseContainerFormat(diag);
|
|
- CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
|
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<uint64>(22771), extractedInfo.size());
|
|
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
|
extractedInfo.invalidate();
|
|
|
|
@@ -879,7 +879,7 @@ void CliTests::testExtraction()
|
|
TESTUTILS_ASSERT_EXEC(args3);
|
|
extractedInfo.open(true);
|
|
extractedInfo.parseContainerFormat(diag);
|
|
- CPPUNIT_ASSERT_EQUAL(22771_st, extractedInfo.size());
|
|
+ CPPUNIT_ASSERT_EQUAL(static_cast<uint64>(22771), extractedInfo.size());
|
|
CPPUNIT_ASSERT(ContainerFormat::Jpeg == extractedInfo.containerFormat());
|
|
CPPUNIT_ASSERT_EQUAL(0, remove("/tmp/extracted.jpeg"));
|
|
CPPUNIT_ASSERT_EQUAL(0, remove(mp4File2.data()));
|
|
--
|
|
2.20.1
|
|
|