Serialization: Fix typos resulting in corrupted data

This commit is contained in:
Jonas Kulla 2013-10-17 01:01:08 +02:00
parent 9e3d7f579c
commit 9dcd09d64f
1 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ write_int16(char **data, int16_t value)
{
memcpy(*data, &value, 2);
data += 2;
*data += 2;
}
static inline void
@ -79,7 +79,7 @@ write_int32(char **data, int32_t value)
{
memcpy(*data, &value, 4);
data += 4;
*data += 4;
}
static inline void
@ -87,7 +87,7 @@ write_double(char **data, double value)
{
memcpy(*data, &value, 8);
data += 8;
*data += 8;
}
#endif // SERIALUTIL_H