Fix unit tests...

No, I don't know why.
This commit is contained in:
Moritz Bunkus 2013-05-05 10:13:16 +02:00
parent 38b11bbce0
commit 72e0acc1e3

View File

@ -96,19 +96,19 @@ fourcc_c::write(unsigned char *mem,
size_t
fourcc_c::write(mm_io_cptr const &io,
fourcc_c::byte_order_t byte_order) {
return write(*io, byte_order);
return write(io.get(), byte_order);
}
size_t
fourcc_c::write(mm_io_c &io,
fourcc_c::byte_order_t byte_order) {
return io.write_uint32_be(val(m_value, byte_order));
return write(&io, byte_order);
}
size_t
fourcc_c::write(mm_io_c *io,
fourcc_c::byte_order_t byte_order) {
return write(*io, byte_order);
return io->write_uint32_be(val(m_value, byte_order));
}
uint32_t