libresapi: fixed bug in JSON serialisation of uint32_t, decimal digits had inverse order

This commit is contained in:
electron128 2015-10-13 20:35:24 +02:00
parent 4df3283fcf
commit 537c4925b7

View File

@ -14,9 +14,9 @@ StreamBase& operator <<(StreamBase& left, KeyValueReference<uint32_t> ref)
{
digit = num % 10;
num = num / 10;
str += (char)(digit + '0');
str = (char)(digit + '0') + str;
}
str += (char)(num + '0');
str = (char)(num + '0') + str;
left << makeKeyValueReference(ref.key, str);
}
else