1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00
This commit is contained in:
Gabor Adam Toth 2011-04-25 22:47:24 +02:00
parent 4090adc5f3
commit 156b57c2e9
2 changed files with 3 additions and 3 deletions

View file

@ -85,9 +85,9 @@ inline PSYC_Packet PSYC_newPacket(PSYC_ModifierArray *routing,
p.contentLength += data->length + 1; // data\n p.contentLength += data->length + 1; // data\n
// set total length: routing-header \n content |\n // set total length: routing-header \n content |\n
p.length = p.routingLength + 1 + p.contentLength + sizeof(PSYC_PACKET_DELIMITER) - 2; p.length = p.routingLength + 1 + p.contentLength + sizeof(PSYC_PACKET_DELIMITER) - 2;
if (flag == PSYC_PACKET_NEED_LENGTH) // add length of length if needed if (flag == PSYC_PACKET_NEED_LENGTH) // add length of length if needed
p.length += log10((double)data->length) + 1; p.length += log10((double)data->length) + 1;
return p; return p;
} }

View file

@ -1,7 +1,7 @@
#include "psyc/lib.h" #include "psyc/lib.h"
#include "psyc/render.h" #include "psyc/render.h"
inline int PSYC_renderModifier(PSYC_Modifier *m, char *buffer) inline size_t PSYC_renderModifier(PSYC_Modifier *m, char *buffer)
{ {
size_t cur = 0; size_t cur = 0;