From: Perttu Ahola Date: Tue, 1 Nov 2011 12:54:11 +0000 (+0200) Subject: Fix an obvious bug in utility.h X-Git-Tag: 0.3.0~1 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=899404f3b18cd199717f5bc31136d11148784b6e;p=oweals%2Fminetest.git Fix an obvious bug in utility.h --- 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);