mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-01 08:25:51 +00:00
Fix KeyvaDB warnings
This commit is contained in:
@@ -279,8 +279,8 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
state->newKeyIndex = 1 + (state->keyFile.getFile ().getSize () - masterHeaderBytes)
|
state->newKeyIndex = 1 + static_cast <KeyIndex> ((state->keyFile.getFile ().getSize () - masterHeaderBytes)
|
||||||
/ calcKeyRecordBytes (m_keyBytes);
|
/ calcKeyRecordBytes (m_keyBytes));
|
||||||
|
|
||||||
openFile (&state->valFile, valPath);
|
openFile (&state->valFile, valPath);
|
||||||
|
|
||||||
@@ -360,7 +360,7 @@ public:
|
|||||||
|
|
||||||
if (result.wasOk ())
|
if (result.wasOk ())
|
||||||
{
|
{
|
||||||
if (bytesRead == calcKeyRecordBytes (m_keyBytes))
|
if (bytesRead == static_cast <size_t> (calcKeyRecordBytes (m_keyBytes)))
|
||||||
{
|
{
|
||||||
MemoryInputStream stream (data, false);
|
MemoryInputStream stream (data, false);
|
||||||
|
|
||||||
@@ -425,7 +425,7 @@ public:
|
|||||||
|
|
||||||
if (result.wasOk ())
|
if (result.wasOk ())
|
||||||
{
|
{
|
||||||
if (bytesWritten != bytes)
|
if (bytesWritten != static_cast <size_t> (bytes))
|
||||||
{
|
{
|
||||||
result = Result::fail ("KeyvaDB: bytesWritten != bytes");
|
result = Result::fail ("KeyvaDB: bytesWritten != bytes");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user