Core: Fix warning of Serialize()
Former-commit-id: d6ddb8947cd250e03a7918e6079b1ee0e4e9bc19 [formerly db49227b808f10e078925da7e293cd3474ea4fa7] [formerly 43f03d8bb5ce0f2ae1ad8989d5af99c6e780c622 [formerly 915b6943dc75ff7e550b6a028358bdb8cbe15203]] Former-commit-id: 1eeb94806f6053948945adf0e044563ad371d1e7 [formerly 2d9eeea263f8728588f6c0ce0d0e0e27006154b1] Former-commit-id: 417aa3f586b9615c2bf8d8f2127b616871be35e7
This commit is contained in:
parent
10a1e16566
commit
5ded56c6e5
|
|
@ -227,7 +227,7 @@ namespace Nz
|
|||
*/
|
||||
bool Serialize(SerializationContext& context, const std::string& value)
|
||||
{
|
||||
if (!Serialize<UInt32>(context, value.size()))
|
||||
if (!Serialize(context, UInt32(value.size())))
|
||||
return false;
|
||||
|
||||
return context.stream->Write(value.data(), value.size()) == value.size();
|
||||
|
|
|
|||
|
|
@ -5879,7 +5879,7 @@ namespace Nz
|
|||
*/
|
||||
bool Serialize(SerializationContext& context, const String& string)
|
||||
{
|
||||
if (!Serialize<UInt32>(context, string.GetSize()))
|
||||
if (!Serialize(context, UInt32(string.GetSize())))
|
||||
return false;
|
||||
|
||||
return context.stream->Write(string.GetConstBuffer(), string.GetSize()) == string.GetSize();
|
||||
|
|
|
|||
Loading…
Reference in New Issue