mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
Fix bug in JSON t_RsFlags32 deserialization
If the member was not present in the JSON it was zeroed while it should be left untouched in that case. This was discovered because in JSON API defualt argument value for methods wasn't onored for t_RsFlags32 arguments.
This commit is contained in:
parent
205743e0ff
commit
2139090f5d
@ -658,8 +658,8 @@ struct RsTypeSerializer
|
||||
uint32_t f = 0;
|
||||
ctx.mOk &=
|
||||
(ctx.mOk || ctx.mFlags & RsGenericSerializer::SERIALIZATION_FLAG_YIELDING)
|
||||
&& from_JSON(memberName, f, ctx.mJson);
|
||||
v = t_RsFlags32<N>(f);
|
||||
&& from_JSON(memberName, f, ctx.mJson)
|
||||
&& (v = t_RsFlags32<N>(f), true);
|
||||
break;
|
||||
}
|
||||
default: break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user