@@ -419,13 +419,13 @@ void SlArray(void *array, uint length, u
// Calculate the size of an object.
static size_t SlCalcObjLength(void *object, const void *desc)
{
size_t length = 0;
uint cmd,conv;
byte *d = (byte*)desc;
const byte *d = (const byte*)desc;
// Need to determine the length and write a length tag.
while (true) {
cmd = (d[0] >> 4);
if (cmd < 8) {
conv = d[2];
@@ -461,13 +461,13 @@ static size_t SlCalcObjLength(void *obje
}
return length;
void SlObject(void *object, const void *desc)
void *ptr;
// Automatically calculate the length?
if (_sl.need_length != NL_NONE) {
SlSetLength(SlCalcObjLength(object, d));