From 899404f3b18cd199717f5bc31136d11148784b6e Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 1 Nov 2011 14:54:11 +0200 Subject: [PATCH] Fix an obvious bug in utility.h --- src/utility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utility.h b/src/utility.h index c741ab047..f89574468 100644 --- a/src/utility.h +++ b/src/utility.h @@ -222,13 +222,13 @@ inline u16 readU16(std::istream &is) return readU16((u8*)buf); } -inline void writeU32(std::ostream &os, u16 p) +inline void writeU32(std::ostream &os, u32 p) { char buf[4]; writeU16((u8*)buf, p); os.write(buf, 4); } -inline u16 readU32(std::istream &is) +inline u32 readU32(std::istream &is) { char buf[4]; is.read(buf, 4); -- 2.25.1