1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-23 08:08:47 -05:00

Fix an obvious bug in utility.h

This commit is contained in:
Perttu Ahola 2011-11-01 14:54:11 +02:00
parent 6aab526989
commit 899404f3b1

View File

@ -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);