Commit 35d1bf86 authored by Dominik Charousset's avatar Dominik Charousset

Fix warnings on GCC

parent 6084571d
......@@ -465,7 +465,7 @@ CAF_TEST(byte_sequence_optimization) {
CAF_TEST(long_sequences) {
std::vector<char> data;
binary_serializer sink{nullptr, data};
size_t n = 12345678900ul;
size_t n = 12345678900u;
sink.begin_sequence(n);
sink.end_sequence();
binary_deserializer source{nullptr, data};
......
......@@ -66,7 +66,7 @@ CAF_TEST(unsigned_arraybuf) {
// Relative positioning.
using pos = arraybuf<uint8_t>::pos_type;
CAF_CHECK_EQUAL(ab.pubseekoff(2, std::ios::beg, std::ios::in), pos{2});
CAF_CHECK_EQUAL(ab.sbumpc(), 0x0c);
CAF_CHECK_EQUAL(ab.sbumpc(), static_cast<int>(0x0c));
CAF_CHECK_EQUAL(ab.sgetc(), 0x0d);
CAF_CHECK_EQUAL(ab.pubseekoff(0, std::ios::cur, std::ios::in), pos{3});
CAF_CHECK_EQUAL(ab.pubseekoff(-2, std::ios::cur, std::ios::in), pos{1});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment