mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix warnings
This commit is contained in:
@@ -673,12 +673,12 @@ var var::readFromStream (InputStream& input)
|
||||
|
||||
case varMarker_Binary:
|
||||
{
|
||||
MemoryBlock mb (numBytes - 1);
|
||||
MemoryBlock mb ((size_t) numBytes - 1);
|
||||
|
||||
if (numBytes > 1)
|
||||
{
|
||||
const int numRead = input.read (mb.getData(), numBytes - 1);
|
||||
mb.setSize (numRead);
|
||||
mb.setSize ((size_t) numRead);
|
||||
}
|
||||
|
||||
return var (mb);
|
||||
|
||||
Reference in New Issue
Block a user