Skip to content

Commit 976e5d8

Browse files
committed
test: Fix test/streams_tests.cpp compilation on SunOS / illumos
On systems where `int8_t` is defined as `char`, the `{S,Uns}erialize(Stream&, signed char)` functions become undefined. This change resolves the issue by testing `{S,Uns}erialize(Stream&, int8_t)` instead. No behavior change on systems where `int8_t` is defined as `signed char`, which is the case for most other systems.
1 parent c05c214 commit 976e5d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/streams_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ BOOST_AUTO_TEST_CASE(streams_vector_reader)
143143
BOOST_CHECK_EQUAL(reader.size(), 5U);
144144
BOOST_CHECK(!reader.empty());
145145

146-
// Read a single byte as a signed char.
147-
signed char b;
146+
// Read a single byte as a int8_t.
147+
int8_t b;
148148
reader >> b;
149149
BOOST_CHECK_EQUAL(b, -1);
150150
BOOST_CHECK_EQUAL(reader.size(), 4U);

0 commit comments

Comments
 (0)