mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
libresapi: fixed bug in JSON serialisation of uint32_t, decimal digits had inverse order
This commit is contained in:
parent
4df3283fcf
commit
537c4925b7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user