Fix an obvious bug in utility.h

master
Perttu Ahola 2011-11-01 14:54:11 +02:00
parent 6aab526989
commit 899404f3b1
1 changed files with 2 additions and 2 deletions

View File

@ -222,13 +222,13 @@ inline u16 readU16(std::istream &is)
return readU16((u8*)buf); return readU16((u8*)buf);
} }
inline void writeU32(std::ostream &os, u16 p) inline void writeU32(std::ostream &os, u32 p)
{ {
char buf[4]; char buf[4];
writeU16((u8*)buf, p); writeU16((u8*)buf, p);
os.write(buf, 4); os.write(buf, 4);
} }
inline u16 readU32(std::istream &is) inline u32 readU32(std::istream &is)
{ {
char buf[4]; char buf[4];
is.read(buf, 4); is.read(buf, 4);