From 72e0acc1e37b9aad70f400efa5310afaf5148eeb Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 5 May 2013 10:13:16 +0200 Subject: [PATCH] Fix unit tests... No, I don't know why. --- src/common/fourcc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/fourcc.cpp b/src/common/fourcc.cpp index ccd3d8e5d..d31564005 100644 --- a/src/common/fourcc.cpp +++ b/src/common/fourcc.cpp @@ -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