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:
e71744b
)
Fix yet-another serialization error in utility.h and set constructor of Buffer take...
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 15 Nov 2011 08:52:00 +0000
(10:52 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:43 +0000
(19:13 +0200)
src/utility.h
patch
|
blob
|
history
diff --git
a/src/utility.h
b/src/utility.h
index 98fa83e8928e5a116d265b89666dfa3432fd5ec5..ed368b208d2237c53e5946cf76aac94a2f1fa5ec 100644
(file)
--- a/
src/utility.h
+++ b/
src/utility.h
@@
-225,7
+225,7
@@
inline u16 readU16(std::istream &is)
inline void writeU32(std::ostream &os, u32 p)
{
char buf[4];
- writeU
16
((u8*)buf, p);
+ writeU
32
((u8*)buf, p);
os.write(buf, 4);
}
inline u32 readU32(std::istream &is)
@@
-367,7
+367,7
@@
public:
else
data = NULL;
}
- Buffer(T *t, unsigned int size)
+ Buffer(
const
T *t, unsigned int size)
{
m_size = size;
if(size != 0)