aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-11-01 14:54:11 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-11-01 14:54:11 +0200
commit899404f3b18cd199717f5bc31136d11148784b6e (patch)
treecaa08eadf6f20f7cda9a27b78ab63c3e0e741536 /src
parent6aab526989c292994d379b1ef5459d6ddc0eb74b (diff)
downloadminetest-899404f3b18cd199717f5bc31136d11148784b6e.tar.gz
minetest-899404f3b18cd199717f5bc31136d11148784b6e.tar.bz2
minetest-899404f3b18cd199717f5bc31136d11148784b6e.zip
Fix an obvious bug in utility.h
Diffstat (limited to 'src')
-rw-r--r--src/utility.h4
1 files 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);