You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.8 KiB
36 lines
1.8 KiB
From f48bd16df9c0a99ba5480d918ecb6d6e48e6f383 Mon Sep 17 00:00:00 2001
|
|
From: David Tardon <dtardon@redhat.com>
|
|
Date: Wed, 18 Nov 2015 12:24:26 +0100
|
|
Subject: [PATCH] fix compilation on i386
|
|
|
|
Change-Id: Ia8b63e6aeb07f4f697211f4d8ede6f840773a9f2
|
|
---
|
|
src/test/IWASnappyStreamTest.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/test/IWASnappyStreamTest.cpp b/src/test/IWASnappyStreamTest.cpp
|
|
index 015208a..bc11724 100644
|
|
--- a/src/test/IWASnappyStreamTest.cpp
|
|
+++ b/src/test/IWASnappyStreamTest.cpp
|
|
@@ -36,7 +36,7 @@ void assertCompressed(const string &message, const unsigned char *const expected
|
|
unsigned long uncompressedSize = 0;
|
|
const unsigned char *const uncompressed = uncompressedStream->read(expectedSize, uncompressedSize);
|
|
assert(uncompressed);
|
|
- CPPUNIT_ASSERT_EQUAL_MESSAGE(message + ": size", expectedSize, uncompressedSize);
|
|
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(message + ": size", expectedSize, size_t(uncompressedSize));
|
|
CPPUNIT_ASSERT_MESSAGE(message + ": input exhausted", uncompressedStream->isEnd());
|
|
CPPUNIT_ASSERT_MESSAGE(message + ": content", std::equal(expected, expected + expectedSize, uncompressed));
|
|
}
|
|
@@ -48,7 +48,7 @@ void assertCompressedFull(const string &message, const unsigned char *const expe
|
|
unsigned long uncompressedSize = 0;
|
|
const unsigned char *const uncompressed = uncompressedStream.read(expectedSize, uncompressedSize);
|
|
assert(uncompressed);
|
|
- CPPUNIT_ASSERT_EQUAL_MESSAGE(message + ": size", expectedSize, uncompressedSize);
|
|
+ CPPUNIT_ASSERT_EQUAL_MESSAGE(message + ": size", expectedSize, size_t(uncompressedSize));
|
|
CPPUNIT_ASSERT_MESSAGE(message + ": input exhausted", uncompressedStream.isEnd());
|
|
CPPUNIT_ASSERT_MESSAGE(message + ": content", std::equal(expected, expected + expectedSize, uncompressed));
|
|
}
|
|
--
|
|
2.5.0
|
|
|