projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aab526
)
Fix an obvious bug in utility.h
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 1 Nov 2011 12:54:11 +0000
(14:54 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 1 Nov 2011 12:54:11 +0000
(14:54 +0200)
src/utility.h
patch
|
blob
|
history
diff --git
a/src/utility.h
b/src/utility.h
index c741ab0477e123ce2663ecc89cfa8e145fc75235..f89574468f2d7738cab6696df3add9d8ae1e6698 100644
(file)
--- 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, u
16
p)
+inline void writeU32(std::ostream &os, u
32
p)
{
char buf[4];
writeU16((u8*)buf, p);
os.write(buf, 4);
}
-inline u
16
readU32(std::istream &is)
+inline u
32
readU32(std::istream &is)
{
char buf[4];
is.read(buf, 4);