From: Perttu Ahola Date: Tue, 1 Nov 2011 12:54:11 +0000 (+0200) Subject: Fix an obvious bug in utility.h X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=899404f3b18cd199717f5bc31136d11148784b6e;p=zefram%2Fminetest%2Fminetest_engine.git Fix an obvious bug in utility.h --- diff --git a/src/utility.h b/src/utility.h index c741ab04..f8957446 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);